- Community Home
- :
- Discussion Forums
- :
- Most Active Software Boards
- :
- LabVIEW
- :
- Taking ln(x) of matrix elements

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted
Options

04-07-2012 06:02 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report to a Moderator

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.

Solved! Go to Solution.

Solution

Accepted by topic author Emanon

08-27-2015 04:09 PM

04-07-2012 10:24 AM - edited 04-07-2012 11:13 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report to a Moderator

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.