From: koolguyuf on
Hi,

I have written a Matlab code to do some agglomerative clustering. The
number of points that need to be clustered are very high (a matrix of
size 10,000 x 10,000 where each matrix element lies between 0.5 and
1.0). Hence I have first converted the code into a function and then
compiled the file using mcc compiler to generate an executable. When I
run the executable with the appropriate arguments, it gives me an
error saying

??? Error using ==> cluster at 137
The MAXCLUST value must be a number 1 or larger.

But I am fully certain that the value of MaxClust as provided by me
varies from 2 through 4.

Thats because when I run this code as a Matlab function , i.e. without
executable, it works fine.


Can anyone please suggest whats going on?

Thank you,
TD
From: Steven Lord on

"koolguyuf" <tdgoswami(a)gmail.com> wrote in message
news:d9adc6c0-f08f-44cd-bdf6-c63b60fa017a(a)y11g2000yqm.googlegroups.com...
> Hi,
>
> I have written a Matlab code to do some agglomerative clustering. The
> number of points that need to be clustered are very high (a matrix of
> size 10,000 x 10,000 where each matrix element lies between 0.5 and
> 1.0). Hence I have first converted the code into a function and then
> compiled the file using mcc compiler to generate an executable. When I
> run the executable with the appropriate arguments, it gives me an
> error saying
>
> ??? Error using ==> cluster at 137
> The MAXCLUST value must be a number 1 or larger.
>
> But I am fully certain that the value of MaxClust as provided by me
> varies from 2 through 4.
>
> Thats because when I run this code as a Matlab function , i.e. without
> executable, it works fine.
>
>
> Can anyone please suggest whats going on?

Are you calling the executable like:

<system prompt> cluster 2

If so, that's the equivalent of calling the function in MATLAB like:

cluster('2') % NOT cluster(2)

Use ISDEPLOYED and/or ISCHAR and/or STR2NUM or the equivalent to convert the
string input argument into a number.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com