LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab's Eval and num2str commands

Solved!
Go to solution
Solution
Accepted by topic author corbin.wilhelmi

Cell arrays were added to MathScript in LabVIEW 2012. The "cell" function itself is not implemented, but you can just assign values  to create cell arrays:

 

new_cell_array{1} = [1 2; 3 4];

new_cell_array{2} = [7 8 9];

 

This will perform much faster than using the "eval" function. That being said, if you can write your code only using regular arrays, it would perform even faster than using cell arrays.

 

Kevin C.

0 Kudos
Message 11 of 12
(3,287 Views)

Thanks Kevin, that is what I am trying to do now.

 

Thanks to everyone else for your help, it is greatly appreciated.

0 Kudos
Message 12 of 12
(3,283 Views)