LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using a 3D matrix with a matlab script block

Hi all of you,
 
it is possible to input a 3D matrix (e.g. 10x4x20) to a matlab script block or you have to unfold this data in a 2D array?
 
Do you know what i have to do to input directly a 3D array (array of real numbers) to a matlab script block.
 
P.D.; I'm using labview 7.0 and matlab 6.5
 
 
Thank you very much
 
Larson
0 Kudos
Message 1 of 2
(2,722 Views)
Hi,

as far as I know there is only the possibility to have an input for a 2D array to matlab scriptnode. Thus you should convert your 3D data to 2D in LV and reconvert it in your matlab code into 3D.

When you select 3D data as an output of a script node it automatically appears as 2D (but no data will be lost). So when you have to use it in LV again as 3D data, what you have to do is reconvert it back from 2D to 3D.

Hope this helps!


0 Kudos
Message 2 of 2
(2,719 Views)