how to make graph for this function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
f:y=Ix−4I+Ix2−5x+6I−Ix+4I+4.
0 Kommentare
Antworten (1)
Setsuna Yuuki.
am 15 Nov. 2020
Bearbeitet: Setsuna Yuuki.
am 15 Nov. 2020
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 Kommentare
Setsuna Yuuki.
am 15 Nov. 2020
Bearbeitet: Setsuna Yuuki.
am 15 Nov. 2020
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/414888/image.jpeg)
Siehe auch
Kategorien
Mehr zu Directed Graphs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!