필터 지우기
필터 지우기

How to plot x^3-4x^2+1 without setting the domain?

조회 수: 1 (최근 30일)
Cassandra Meyer
Cassandra Meyer 2022년 1월 28일
댓글: Cassandra Meyer 2022년 1월 28일
I need to specifically have matlab do the default domain first without inputting it as the first part of this problem, and my initial thought was to try this but it didn't work. I'm very new to matlab so it could be a simple mistake.
fplot(@(x) x.^3+4x.^2+1)

채택된 답변

Voss
Voss 2022년 1월 28일
"4x" is not a valid expression. "4*x" is.
fplot(@(x) x.^3+4*x.^2+1)

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by