LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mathscript repmat

Solved!
Go to solution

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

 

 

0 Kudos
Message 1 of 2
(2,918 Views)
Solution
Accepted by topic author Gabi11

repmat in labview mathscript node: the following syntax works:

 

aux1(:, ones(5,1))

 

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