How to change the font location in mesh?

2 次查看(过去 30 天)
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);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by