Showing results for 
Search instead for 
Did you mean: 
Reply

Taking ln(x) of matrix elements

Solved!
Go to Solution
Highlighted

Taking ln(x) of matrix elements

I have a 1x6 matrix of data points that I want to manipulate. The equation I need to operate on them is 10ln(x)+10, where x is the data input. The problem I'm having now is to get the 1x6 matrix of ln(x). I've tried using the Natural Logarithm VI but it didn't work. I also tried trying to calculate element by element but couldn't get it to work either.

0 Kudos
Message 1 of 2 (402 Views)
Reply
0 Kudos
Solution
Accepted by topic author Emanon
‎08-27-2015 06:09 PM

Re: Taking ln(x) of matrix elements

[ Edited ]

In LabVIEW, a matrix is a special datatype and will substitute a matrix specific function for the lograrithm which requires a square input matrix and provides a complex result. Your matrix is not square! Did you even look at the help details?

 

If you want to do simple elementwise operations, I would recommend you use a plain 1D array instead and things will fall into place. Try it!

 

See attached modification.

Message 2 of 2 (358 Views)