Getting array size error when using plotIGESentity?

1 view (last 30 days)
I'm using the function plotIGESentity from IGES toolbox as follow.
for i=1:length(ParameterData);
grid on
It used to work fine before I compile the C files and run the makeIGESmex. but now when i run it with the same IGES file I get the following error!!!
Error using nrbSrfRegularEvalIGES
Requested 12884903802x480 (23040.0GB) array exceeds maximum array size preference. Creation of arrays greater than
this limit may take a long time
and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
Error in retSrfCrvPnt (line 54)
Error in plotIGESentity (line 137)
And when i run the code one another PC it works fine !!!
Any help is appreciated

Accepted Answer

Walter Roberson
Walter Roberson on 19 Sep 2017
Is the parameter data being extracted from the command line? If so then remember that for compiled executables the command line information is always received as strings.
Interactive MATLAB:
plot4me(1, 2,3)
plot4me receives numeric 1, 2, and 3
Compiled, command line:
plot4me 1, 2,3
plot4me receives '1,' and '2,3'
Walter Roberson
Walter Roberson on 22 Sep 2017
Put in fprintf() or disp() statements or msgbox() calls.

Sign in to comment.

More Answers (0)


Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by