08-28-2016 03:07 AM
Hi,
How can I create a diagonal matrix whose diagonal elements are determined by a control?
Like [ lamda 0; 0 lamda]
Thanks in advance.
Chuan
Solved! Go to Solution.
08-28-2016 07:30 AM
Hi!
Have you tried Set Matrix Diagonal function? It's in Mathematics -> Linear Algebra -> Matrix Palette
Marcin
08-28-2016 09:05 AM
What have you tried, and why isn't it working? Attach your code (meaning the VI itself) so we can see, try it, and advise you.
Some points to consider:
Presumably you are using either Arrays or Matrices, and are using one or more LabVIEW Structures or Functions. If you show us your code, we can make suggestions ...
Bob Schor
08-28-2016 09:40 AM
Thanks for your advice. I use the 'create special Matrix.vi' to create a n-by-n identity matrix and I want this matrix to multiply a scalar, lamda. I don't know how to implement this.
Chuan
08-28-2016 09:44 AM