Turn on suggestions

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
- Mute
- Printer Friendly Page

Highlighted

05-01-2011 09:00 AM

Options

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

Hi,

I have two matrices 1 2d and 1 1d I wish to multiple the first element of the 1d by the each element of the first column of the 2d, the second element of the 1d by all the elements of the second column of the the 2d and so on. However I dont know how to implement this?

e.g.

111 123

111 x 123 = 123 (The number of columns in the 1d array will always be the same as the number in the 2d array)

111 123

Any help would be greatly appreciated.

Thanks

Nick Muir

Solved! Go to Solution.

Highlighted
Options

** LabVIEW Champion. It all comes together in GCentral **

Solution

Accepted by topic author Canalian

05-01-2011 11:49 AM - edited 05-01-2011 11:50 AM

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

Use an autoindexing FOR loop.

LabVIEW has no distinctions between a row vector and a column vector, it's just a 1D array.

Also, I would use a 2D array instead of a matrix.

(Make sure to disable autoindexing on the 1D array input tunnel)

Highlighted
Options

05-01-2011 09:59 PM

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

Hi Altenbach,

Once again your my saviour.

Appreciate it

Nick