04-27-2015 10:48 AM
Hi!
I was trying to do matrix*vector element-wise multiplication in Mathscript node but it seems it doesn't work. (In Matlab does)
If it is not possible to do it, I should then repeat the vector to have the same number of rows as the matrix, but I don't know how to do that either. Could anyone tell me the equivalent of "repmat" (Matlab) in Mathscript node? To make a vector= 1, 2, 3 into a matrix = 1, 2 , 3; 1, 2 ,3 ; 1, 2, 3; ...
Thanks!
Gabriel
Solved! Go to Solution.
04-27-2015 12:14 PM
repmat in labview mathscript node: the following syntax works:
aux1(:, ones(5,1))