LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a 3D array to a MATLAB Script?

I have a 3D array in LabVIEW that I need to send to a MATLAB script block. The Help file for MATLAB script blocks in LabVIEW says that the "Real Matrix" input type that I'm using is multi-dimensional, however when I wire the 3D array into this input the wire cannot connect - it says the sink is only 2D.

Does anyone know how I can get the input to accept 3D data?

Thanks,
Ian
0 Kudos
Message 1 of 2
(3,011 Views)
I encounter the same problems, and I believe at the moment the only solution is the simplest I can think of (and use ... :-)) reshape to 2D before passing to matlab script, reshape in matlab back to 3D, and take care of dimension order ....

goodluck

Wiebe
0 Kudos
Message 2 of 2
(3,011 Views)