請問各位高手,如何用matlab畫地球模型,最好帶有經緯線的那種!非常感謝

2021-05-05 19:38:42 字數 1617 閱讀 9543

1樓:匿名使用者

% 繪製地球儀,並標出我們的位置

cla reset;

load topo;

[x y z] = sphere(45);

s = su***ce(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);

2樓:匿名使用者

zhge 問題解決不了

請問各位高手,在matlab中如何在同一個圖中畫出兩組不同的散點圖?

3樓:刻舟不為劍

可以通過設定不同的格式啊,例如,有y1,y2兩組資料,我們設定不同的格式來體現不同:

y1=[4.3600    8.7000   13.

3400   13.7300   17.7300   19.

4500   25.8100   22.8100   20.

0000 17.8000];

y2=[4.2100    7.5000   10.

6500   11.0300   10.1300   11.

4400   20.9400   19.3000   17.

3000 15.5000];

x=1:length(y1);

plot(x,y1,'go','linewidth',2,'markeredgecolor','k','marke***cecolor','g','markersize',10)

hold on

plot(x,y2,'cs','linewidth',2,'markeredgecolor','k','marke***cecolor','c','markersize',10)

hold on

axis([0 12 0 32])

grid on

t=legend('1#','2#');

set(t,'fontsize',12);      %設定圖示字型大小

4樓:

plot()

hold on

plot()

是在已有畫出圖形中再畫另一個

請教一下MATLAB高手,如何用MATLAB實現 知道了函式

簡單用cftool工具箱,先在工作空間輸入x,y,再輸入cftool,按提示匯入資料,建立擬合。求問,知道兩個自變數 y和p 和一個因變數 x 的資料,怎麼才能在matlab裡面繪出x關於y變化的函式影象?可以的,只不過需要先知道函式形式,否則只能用多項式擬合 有多個影響因素的時候如何確定函式關係m...

不用迴圈,請問各位matlab高手圖中問題該如何解決

可以描述是什麼問題麼?根據x,y得到z?規則是什麼?clear all close all clc x 1 2 1 32 1 y 2 3 2 42 5 1 3 z 1 2 3 1 2 4 1 2 5 2 1 3 xnew1 ones size y,1 1 reshape x 1,xnew2 resh...

如何用matlab畫出橢球體,如何用matlab畫出一個橢球體?

補充bai 3 你用這個吧,因為開du方使zhiz0成為複數了。dao ezsurf sqrt 1 x.x 9 y.y 4 4 或改變x y的取值範回圍 x 2 0.1 2 y 1 0.1 1 x,y meshgrid x,y z0 sqrt 1 x.x 9 y.y 4 surf x,y,z0 1 ...