필터 지우기
필터 지우기

How to change the font location in mesh?

조회 수: 2 (최근 30일)
Kash Costello
Kash Costello 2018년 6월 27일
편집: KSSV 2018년 6월 27일
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