Tips and tricks: Difference between revisions

Jump to navigation Jump to search
m
formatting
m (formatting)
m (formatting)
Line 106: Line 106:
  B(!inds) = num2cell(A(!inds))
  B(!inds) = num2cell(A(!inds))


This gets you a 1 column cell array. You can reshape it to the original size by using the <code>reshape</function>
This gets you a 1 column cell array. You can reshape it to the original size by using the <code>reshape</code>function


The next version of octave (3.6) implements the <code>CollectOutput</code> switch as seen in example 8 here:                    http://www.mathworks.com/help/techdoc/ref/textscan.html
The next version of octave (3.6) implements the <code>CollectOutput</code> switch as seen in example 8 here:                    http://www.mathworks.com/help/techdoc/ref/textscan.html

Navigation menu