필터 지우기
필터 지우기

Can someone help me with this error? Im looking to also plot x,f(x)

조회 수: 1 (최근 30일)
Taryn Stewart
Taryn Stewart 2022년 2월 1일
답변: Voss 2022년 2월 1일

답변 (1개)

Voss
Voss 2022년 2월 1일
f(x) in that context is the xth index of f. Indices must be positive integers (or logicals - don't worry about it if you don't know what that means), which x is not. In this case you don't need to index f. Just say:
x = 0:0.001:0.1*pi;
f = 5*acos(2*x) % etc etc the rest of your expression for f
Then you can plot f(x) vs x like:
plot(x,f)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by