How to change the font location in mesh?

1 view (last 30 days)
Kash Costello
Kash Costello on 27 Jun 2018
Edited: KSSV on 27 Jun 2018
Hello! I have this code to plot my mesh. When I use my Rotate 3D to make it look like a plane, some of the numbers are not visible. I was thinking of placing the numbers like a few mm above where it is right now. I attached an image and you can see my problem. i hope you can help me with this ! Thanks.
d=reshape(Gauss_A,9,9);
mesh(d);
for i=1:size(d,1)
for j=1:size(d,2)
h=text(j, i, d(i,j), num2str(d(i, j)));
set(h, 'hori', 'center', 'vertical', 'bottom', 'color', 'r');
end
end
title('A','FontWeight','bold','FontSize',24);

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!