User Tools

Site Tools


octave:octave

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
octave:octave [2008/08/06 16:09] devaoctave:octave [2008/08/06 16:25] deva
Line 28: Line 28:
 sizeof(myarray) % get number of elements sizeof(myarray) % get number of elements
 sizeof(myarray(1)) %get length of first string sizeof(myarray(1)) %get length of first string
 +
 +% Iterate strings in string array
 +for str = myarray
 +  disp(str)
 +end
 +
 </code> </code>
 Note: Arrays are 1-based, not 0-based as they usually are in real programming languages. Note: Arrays are 1-based, not 0-based as they usually are in real programming languages.
octave/octave.txt · Last modified: 2009/04/23 13:54 by deva