From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

does the command size from matlab is supported in labview mathscript

hi, im using the labview mathscript and i want to create my own function, my code has the command []=size();

when i run the script in the window labview mathscript it shows the error "expecting EOF, found '['" in the

line where i have the command size

 

Can somebody help me?

 

grettings

 

 

0 Kudos
Message 1 of 5
(5,764 Views)
Hi, What do you want for run command []=size()? Usually, you should use c = size(a) or [m, n] = size(a). http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_size/
0 Kudos
Message 2 of 5
(5,751 Views)

hi, yes i already saw that link, i tried on:  [m,N,ntrials]= size(X)

and i cant see the mistake

0 Kudos
Message 3 of 5
(5,749 Views)

Hi,

 

Currently, MathScript does not support mulit-dimensional array. That is to say, size can have two outputs at most.

0 Kudos
Message 4 of 5
(5,745 Views)

hi, you were right thanks

0 Kudos
Message 5 of 5
(5,736 Views)