[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55622] for loop does not run over a matrix wi
From: |
Muhammad Yasirroni |
Subject: |
[Octave-bug-tracker] [bug #55622] for loop does not run over a matrix with colums but no row |
Date: |
Sun, 29 Nov 2020 21:38:57 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47 |
Follow-up Comment #20, bug #55622 (project octave):
But, ones(3,1) is not empty? Sorry for the confusion,
And ordinary users who are not familiar with octave will most likely think of
it as `loop using index`.
loop_var = ones(3,1)
isempty(y)
size(y)
for var = loop_var
disp('hey')
disp(var)
loop_var =
1
1
1
ans = 0
ans =
3 1
hey
1
1
1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55622>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/