how to do element wise multiplication of 2 columns in array?

조회 수: 2 (최근 30일)
Suresh R
Suresh R 2021년 11월 18일
답변: Matt J 2021년 11월 18일
how to do element wise multiplication of 2 columns in array?

채택된 답변

Matt J
Matt J 2021년 11월 18일
For example,
A=randi(10,5,2)
A = 5×2
1 10 4 8 6 7 4 5 7 5
A(:,1).*A(:,2)
ans = 5×1
10 32 42 20 35

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by