Plotting Anonymus Function (plot(),fp​lot(),ezpl​ot())

조회 수: 7 (최근 30일)
Emily Deleon
Emily Deleon 2022년 1월 26일
댓글: Matt J 2022년 1월 26일
Hi all. I am trying to plot "a nonlinear, continuous function of one variable (e.g., sum of harmonic functions, truncated Taylor series, example univariate continuous objective function from the textbook, etc.) Use plot, fplot, and ezplot to plot this function in three different figure windows. Include title and axis labels. Change the line weight of the plot programmatically (not using a GUI)."
I dont know how to use plot, fplot ot ezplot. Any help is appreciated, thanks!
f = @(x) 3*x.^2 - 2*x + 5;
plot(f)
fplot(f,[-16 16]);
ezplot(f);

답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by