如何在MATLAB里面将两个图画在一起data=[7478151373731111321179128017874104921271216472728628833617152383369272708229522293317677];T=data(:,1);D=data(:,2);K=data(:,3);[X,Y,Z]=griddata(T,D,K,linspace(min(T),max(T))',linsp
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 07:19:39
如何在MATLAB里面将两个图画在一起data=[7478151373731111321179128017874104921271216472728628833617152383369272708229522293317677];T=data(:,1);D=data(:,2);K=data(:,3);[X,Y,Z]=griddata(T,D,K,linspace(min(T),max(T))',linsp
如何在MATLAB里面将两个图画在一起
data=[
747815
137373111
1321179128
017874
1049212712
164727286
2883361715
238336927
2708229522
293317677
];
T=data(:,1);
D=data(:,2);
K=data(:,3);
[X,Y,Z]=griddata(T,D,K,linspace(min(T),max(T))',linspace(min(D),max(D)),'v4');%插值
plot(T,D);
hold on;
figure,contourf(X,Y,Z) %等高线图
怎么不能把两个图画在一起
求助 本人较2 最好把改好的代码发过来 谢谢
如何在MATLAB里面将两个图画在一起data=[7478151373731111321179128017874104921271216472728628833617152383369272708229522293317677];T=data(:,1);D=data(:,2);K=data(:,3);[X,Y,Z]=griddata(T,D,K,linspace(min(T),max(T))',linsp
>> data=[
747815
137373111
1321179128
017874
1049212712
164727286
2883361715
238336927
2708229522
293317677
];
T=data(:,1);
D=data(:,2);
K=data(:,3);
[X,Y,Z]=griddata(T,D,K,linspace(min(T),max(T))',linspace(min(D),max(D)),'v4');%插值
contourf(X,Y,Z) %等高线图
hold on;plot(T,D,'-o');