how do you write the equation f=exp(x)*cos(x)?

조회 수: 6 (최근 30일)
Jennifer Badash
Jennifer Badash 2017년 11월 13일
댓글: ChangQing Teng 2019년 11월 28일
how do you write the equation f=exp(x)*cos(x)? it is saying that the inner matrix dimensions must agree

채택된 답변

James Tursa
James Tursa 2017년 11월 13일
I am guessing you want to use the element-wise multiply operator, which has the dot:
f = exp(x) .* cos(x);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by