Math function and plotting

Hi,
I'm trying to plot that function y. I have matrix 1x11 x, then I think I should have 1x11 y. But I don't know why I only have one value of y. Please tell me why I'm wrong. Thank you.

답변 (1개)

James Tursa
James Tursa 2020년 3월 5일

1 개 추천

You need to change that matrix divide operator / to an element-wise divide operator ./ with the dot.

이 질문은 마감되었습니다.

질문:

2020년 3월 5일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by