The object method Range only accepts one-dimensional arrays. However, MATLAB by default creates two-dimensional arrays.
To work around this, apply the following prior to calling the Range method;
system_dependent('COM_SafeArraySingleDim', 1)
This forces MATLAB to export single dimension arrays instead of two-dimensional when exporting arrays to COM objects. Note that the cell array
{'Picture 3'; 'Picture 4'}
elements must separated by a semicolon (";") rather than a comma (",") or a space.
0 Comments
Sign in to comment.