Tips and tricks: Difference between revisions

Line 96: Line 96:
  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</code>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
Anonymous user