04-14-2014 09:59 AM
Hi all,
I'd like to know is there a special VI that would correspond to blkdiag in Matlab, to create a block diagonal matrix from other matrices or do I have to go the long way around and add one by one using Set Submatrix?
Thanks!
04-14-2014 10:05 AM
04-15-2014 07:11 AM
Hey Markanbl,
No there is no special VI but you can use the blkdiag command.
In LV the the command is " function y = blkdiag(varargin)"
add it in "Matlab Script" area.
In addition a short kB for Matlab -> LV communication
http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/creating_a_matlab_script/
best regards
Timo Schröder
AE National Instruments
04-15-2014 08:22 AM
I'd like to use MathScript but I can't, apparently MathScript is a lot slower than the rest of LabView so I have to do everything "manually".
Thank you