How to specify a domain of x and y values for a graph?
28 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alec
am 22 Mär. 2023
Beantwortet: John D'Errico
am 22 Mär. 2023
I cant seem to get this to work
I am plotting a 3d graph, and I am told to graph it over the domain of ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1333185/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1333185/image.png)
This is my code so far:
syms x y
f = y^2*(3/4)+y^3*(1/24)-y^4*(1/32)-x^2;
fsurf(f)
axis([-3 3 -3 3 -3 3])
rotate3d on
Akzeptierte Antwort
John D'Errico
am 22 Mär. 2023
Did you read the help for fsurf? What does the second argument do?
help fsurf
syms x y
f = y^2*(3/4)+y^3*(1/24)-y^4*(1/32)-x^2;
fsurf(f,[-3,3,-6,6])
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!