I want the code for this operation ⊗ on two vectors X and Y

3 次查看(过去 30 天)
Suppose that X and Y are two vectors of the same dimension: X=(x1,x2,···,xn)^T , Y=(y1,y2,···,yn)^T . Define an operation ⊗on X and Y as follows: X⊗Y=(x1×y1,x2×y2,···,xn×yn)^T.
example :
[0.2 0.6 0.5 0.9]^T ⊗ [1 1 1 0]^T = [0.2 0.6 0.5 0]^T

采纳的回答

Walter Roberson
Walter Roberson 2014-1-23
You can use .*

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by