How can I change the value of x and y axes?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MATTIA
am 30 Apr. 2023
Beantwortet: Adam Danz
am 30 Apr. 2023
Hello everyone, sorry for my english, I created a meshgrid with values between 0 and pi/2, but when I plot with the command mesh it shows me 0, 0.5, 1, 1.5. I would like to obtain values along the axes expressed in degrees for example 0,15,30,45,60,75,90. How can I do? Thanks for the replies.
ps: a=alfa , b=beta.
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 30 Apr. 2023
You must be using mesh(Z)
If x and y are in radians, convert them to degrees.
xdeg = rad2deg(x);
ydeg = rad2deg(y);
mesh(xdeg, ydeg, z)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots 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!