How would I write the function of f(x)=sin(x)*exp(-x/10)
조회 수: 5 (최근 30일)
이전 댓글 표시
Where would I need to put periods in this function?
댓글 수: 0
답변 (1개)
James Tursa
2020년 9월 29일
편집: James Tursa
2020년 9월 29일
The multiply. E.g.,
f = @(x) sin(x) .* exp(-x/10);
You don't need it on the divide because you are dividing by a scalar.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 NaNs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!