请问哪位高手,在用MATLAB画三维坐标图时,想让结果有文字和文本框,并能设置字的颜色明白那该怎么编写程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了请问哪位高手,在用MATLAB画三维坐标图时,想让结果有文字和文本框,并能设置字的颜色明白那该怎么编写程相关的知识,希望对你有一定的参考价值。

不用编程,输出图像后点击图像窗口最后一个按钮可以进入图像编辑状态,想怎么注释就怎么注释 参考技术A ) 表示在已画出的图形中,坐标(1,2)处添加“极大值”字样。
建议借本Matlab的参考书,这些都是画图的基本要求,不管以后写论文还是其他都很有帮助,别怕麻烦!追问

我查了,可是没找到,我需要画把matlab放在一个矩形框里,然后在把它们一起显示在一个三维坐标图 上

请问各位高手,如何用matlab画地球模型,最好带有经纬线的那种!非常感谢!

参考技术A 2010b帮助:
Mapping Toolbox\User's Guide\Map Projections Reference\Globe

Graticule
This map display is not a true map projection. It is constructed by calculating a three-dimensional frame and displaying the map objects on the surface of this frame.

Features
In the three-dimensional sense, globe is true in scale, equal-area, conformal, minimum error, and equidistant everywhere. When displayed, however, it looks like an Orthographic azimuthal projection, provided that the MATLAB axes Projection property is set to 'orthographic'.

Remarks
This is the only three-dimensional representation provided for display. Unless some other display purpose requires three dimensions, the Orthographic projection's display is equivalent.
=========================================
Example

% Set up axes
axesm ('globe','Grid', 'on');
view(60,60)
axis off

% Display a surface
load geoid
meshm(geoid, geoidrefvec)

% Display coastline vectors
load coast
plotm(lat, long)

=========================================
上面那个是线框模式有经纬示意
下面这个是地形彩色图,没线
没用过mapping工具箱,估计你要的功能都可以完美实现
如果有专门的相关书籍可以参考,没的话自己把该工具箱帮助好好看看
=========================================
帮助中的主题:Earth's Topography

load('topo.mat','topo','topomap1');
[x,y,z] = sphere(50);
cla reset
axis square off
props.AmbientStrength = 0.1;
props.DiffuseStrength = 1;
props.SpecularColorReflectance = .5;
props.SpecularExponent = 20;
props.SpecularStrength = 1;
props.FaceColor= 'texture';
props.EdgeColor = 'none';
props.FaceLighting = 'phong';
props.Cdata = topo;
surface(x,y,z,props);
light('position',[-1 0 1]);
light('position',[-1.5 0.5 -0.5], 'color', [.6 .2 .2]);
view(3)
参考技术B % 绘制地球仪,并标出我们的位置
cla reset;
load topo;
[x y z] = sphere(45);
s = surface(x,y,z,'FaceColor','texturemap','CData',topo);
colormap(topomap1);
% Brighten the colormap for better annotation visibility:
brighten(.6)
% Create and arrange the camera and lighting for better visibility:
campos([1.3239 -14.4250 9.4954]);
camlight;
lighting gouraud;
axis off vis3d;
% Set the x- and y-coordinates of the textarrow object:
x = [0.7698 0.5851];
y = [0.3593 0.5492];
% Create the textarrow object:
txtar = annotation('textarrow',x,y,'String','We are here.','FontSize',14);本回答被提问者和网友采纳
参考技术C zhge 问题解决不了

以上是关于请问哪位高手,在用MATLAB画三维坐标图时,想让结果有文字和文本框,并能设置字的颜色明白那该怎么编写程的主要内容,如果未能解决你的问题,请参考以下文章

matlab 坐标图动画,动态显示数据

Matlab中如何绘制三维数据体

请问各位高手,如何用matlab画地球模型,最好带有经纬线的那种!非常感谢!

请问在matlab中画图,图的题目,坐标名还有每条曲线的图注怎么添加啊!

python 三维坐标图

MATLAB中plot画图坐标轴限定问题?