How to specify a domain of x and y values for a graph?
67 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alec
le 22 Mar 2023
Réponse apportée : John D'Errico
le 22 Mar 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
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
Réponse acceptée
John D'Errico
le 22 Mar 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!