- Community Home
- :
- Discussion Forums
- :
- Most Active Software Boards
- :
- LabVIEW
- :
- Matrix Dot Product

turn on suggestions

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

Showing results for

Topic Options

- Start Document
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page

07-01-2011 12:17 AM

Options

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

Hi,

Anyone here can help me transforming this Matlab code to LabVIEW?

**varA.*varB**

varA and varB is a 2D array.

Thanks....

07-01-2011 01:48 PM

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

Look at this thread, which goes over a similar issue. You can also look at the following resources:

Working with .m Files in LabVIEW for Text-Based Signal Processing, Analysis, and Math

Hope this helps. Good luck!

~kgarrett

District Sales Engineer

07-01-2011 04:31 PM

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

07-01-2011 04:42 PM - edited 07-01-2011 04:43 PM

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

I am not sure why you call this thread "dot product", because the dot product is typically defined for vectors (1D arrays) and not for 2D Arrays. Can you clarify what result you expect? Is one of the dimensions of your 2D arrays guaranteed to be of size=1?

07-01-2011 05:46 PM

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

07-02-2011 12:08 PM

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

Darin,

Oops, I forgot that the Matlab dot-star operator is, indeed, element-by-element multiplication, analogous to the inner product of vectors! Thanks for clarifying this! It is still good to see that, if you know what you want to do (e.g. multiply two matrices or do element-by-element multiplication of two 2-D arrays), there's a native and intuitive way to do it in LabVIEW.

BS