how to make graph for this function
1 回表示 (過去 30 日間)
古いコメントを表示
f:y=Ix−4I+Ix2−5x+6I−Ix+4I+4.
0 件のコメント
回答 (1 件)
Setsuna Yuuki.
2020 年 11 月 15 日
編集済み: Setsuna Yuuki.
2020 年 11 月 15 日
You can use fplot()
for example:
syms x;
y = @(x) abs(x-4)+abs(x^2-5*x+6)-abs(x+4)+4;
fplot(y,'LineWidth',3);
xlim([-6 12])
more info: https://es.mathworks.com/help/matlab/ref/fplot.html
2 件のコメント
Setsuna Yuuki.
2020 年 11 月 15 日
編集済み: Setsuna Yuuki.
2020 年 11 月 15 日
Another way:
x = linspace(-6,12,2000);
y = abs(x-4)+abs(x.^2-5*x+6)-abs(x+4)+4;
plot(x,y,'LineWidth',2)
参考
カテゴリ
Help Center および File Exchange で Directed Graphs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!