how do you write the equation f=exp(x)*cos(x)?
조회 수: 6 (최근 30일)
이전 댓글 표시
how do you write the equation f=exp(x)*cos(x)? it is saying that the inner matrix dimensions must agree
댓글 수: 0
채택된 답변
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 Center 및 File 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!