octave-bug-tracker
[Top][All Lists]
Advanced

[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 23:14:18 -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 #22, bug #55622 (project octave):

Whoops, sorry for the typo. Now I'm understand what is asked by the original
post. It means that octave for loop will only iterate `column` by `column`, no
matter about the dimensions.

I should understand it more clearly from the doc:


If var is a column vector or a matrix, var will be a column vector each time
the loop body is executed.


Even if the matrix is in 3d shape, octave still loop over it column by column
(not 2d matrix for each loop). Than i will stick in using looping a range and
use that as the index.

Thank you and sorry.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55622>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]