ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Matricies with Mathscript

Solved!
Go to solution
Is there a way to basically allocate memory inside of a mathscript node?  In other words, in Java or C++ you can say something like  x[10]...   to make a matrix and can fill it later. 
0 Kudos
Message 1 of 3
(7,480 Views)
Solution
Accepted by topic author oglakan

Hi,

 

In MathScript, you can use

A = [];

to create an emtpy matrix and fill it later.

Also, you can use

A = zeros(10);

to create a 10-by-10 matrix filled with zero.

 

0 Kudos
Message 2 of 3
(7,475 Views)
Thanks, this was making me mental!
0 Kudos
Message 3 of 3
(7,457 Views)