fplot is not working

조회 수: 37 (최근 30일)
rohinesh r
rohinesh r 2020년 10월 26일
편집: Cris LaPierre 2020년 10월 26일
syms x
f(x) = sin(x)
fplot(f(x),[-pi/2,pi/2])

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 10월 26일
편집: Cris LaPierre 2020년 10월 26일
You are close. The error in line 3 is because f(x) is not the function name. Check in your workspace and you'll see that f is.
syms x
f(x) = sin(x)
f(x) = 
sin(x)
fplot(f,[-pi/2,pi/2])

카테고리

Help CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by