cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to multiply two vectors cell by cell like '.*' in Matlab

sfan
1-Visitor

How to multiply two vectors cell by cell like '.*' in Matlab

Hi,

In matlab it is convenient to multiply two vector cell by cell with .*,

But I don't know how it works with Mathcad, 15 or Prime.

Is there a built-in function for that or I have to program.

Could someone help me with that?

Thank you

ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:sfan)

You want to "vectorize" the calculation, In version 15 it's "cntrl shift -" (the underline), in Prime it's "cntrl shift ^".  This will draw an arrow over the operation and perform the function cell by cell.

View solution in original post

2 REPLIES 2
Fred_Kohlhepp
23-Emerald I
(To:sfan)

You want to "vectorize" the calculation, In version 15 it's "cntrl shift -" (the underline), in Prime it's "cntrl shift ^".  This will draw an arrow over the operation and perform the function cell by cell.

sfan
1-Visitor
(To:sfan)

Thanks Fred.

You are always helpful!

Announcements

Top Tags