Use step size in surf and imagesc
이전 댓글 표시
I imported a 20 x 20 matrix from a matlab. I used that matrix to plot surface map and image map using surf() and imagesc() as shown below:
figure;
surf(mmx1,'EdgeColor','None', 'facecolor', 'interp');
view(2);
axis equal;
figure;
imagesc(mmx1);
colormap jet;
Although the size of matrix is 20 x 20, the step size is 0.5 mm and hence in the surface and image maps, the X and Y axis should be 10 mm x 10 mm.
Can you please help me to define this step size so that I'd get an image with 10 mm in both X- and Y-axes? Thank you for your help.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!