Info

This question is closed. Reopen it to edit or answer.

In item 7, I need to use short labels for the x, y, z axes. How it is? Thank you

1 view (last 30 days)
x = -4:0.1:4;
y = -4:0.1:4;
[X,Y] = meshgrid(x,y)
Z = cos(37.6*X).*X.^3-Y.^2;
figure('Name','Zadanie 7','NumberTitle','off');
surfc(X,Y,Z);
xlabel 'x'
ylabel 'y'
zlabel 'Z'
print 7_1.png
hold off
figure('Name','Zadanie 7_1','NumberTitle','off');
mesh(X,Y,Z);
xlabel 'x'
ylabel 'y'
zlabel 'Z'
print 7_2.png
hold off
  4 Comments
Vadim Potorocha
Vadim Potorocha on 17 Nov 2020
the teacher told me about a short format of this, but in task i need it how it done
Image Analyst
Image Analyst on 17 Nov 2020
What is item 7?
Your graph looks like this. The numbers for the x and y axes do not have any numbers after the decimal point, so what do you mean by "short labels for the x, y, z axes."?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!