[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47814] Sum function doesn't work as expected
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #47814] Sum function doesn't work as expected in GUI command window |
Date: |
Sat, 30 Apr 2016 23:44:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Update of bug #47814 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
No bug here. Check your workspace, you probably have a variable named "sum".
>> h = [2, 1; 3, 5; -2, 2];
>> sum (h)
ans =
3 8
>> sum = 0;
>> sum (h)
error: subscript indices must be either positive integers less than 2^31 or
logicals
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47814>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/