필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
Aseel H
Aseel H 2014년 1월 23일
답변: Walter Roberson 2014년 1월 23일
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