Hi,
Is there a way to multiply (element wise multiplication ) a 1-D array (of length 2) with a 3-D array?
A = (A1,A2)
M = ones(2,length(Fact2),length(Fact))
I have matlab R2014a .

 채택된 답변

Matt J
Matt J 2019년 10월 1일
편집: Matt J 2019년 10월 1일

1 개 추천

If you cannot upgrade to R2016b, then
bsxfun(@times, A,M)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

질문:

2019년 10월 1일

편집:

2019년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by