0

我有 3 个参数 x、y、z,我想问一下如何在 matlab 中绘制 3-D 图。

49.2088   18.7600   60.0000
49.2088   18.7599   65.0000
49.2089   18.7599   59.0000
49.2089   18.7600   62.0000
49.2090   18.7600   68.0000
49.2090   18.7600   65.0000
49.2090   18.7600   65.0000
49.2091   18.7600   66.0000
49.2091   18.7600   71.0000
49.2091   18.7600   78.0000
49.2092   18.7601   80.0000
49.2093   18.7601   77.0000
49.2093   18.7601   82.0000
49.2094   18.7602   80.0000
49.2093   18.7602   81.0000
49.2091   18.7605   54.0000
49.2090   18.7605   50.0000
49.2087   18.7608   66.0000
49.2087   18.7608   66.0000
49.2084   18.7611   75.0000
49.2083   18.7611   75.0000

图的形状应该像http://uloz.to/xGWT2Sz/graph-jpg

4

1 回答 1

0

看看这个例子

% Load the spectra data
load spectraData masscharge time spectra;

% Create the 3D plot
figure;
plot3(masscharge, time, spectra);
box on;

% Set the viewing angle and the axis limits
view(26, 42);
axis([500 900 0 22 0 4e8]);

% Add title and axis labels
xlabel('Mass/Charge (M/Z)');
ylabel('Time');
zlabel('Ion Spectra');
title('Extracted Spectra Subset');

3-D 看起来洛克

图片
(来源:mathworks.com

为了更好的学习访问这个

于 2013-03-22T11:21:45.967 回答