plotting a 3d graph for a 3d table

1 次查看(过去 30 天)
I have a table and I want to plot a 3d graph for that.

采纳的回答

Voss
Voss 2024-4-30
M = readmatrix('file.xlsx')
M = 22x10
NaN NaN 0.9200 1.3000 1.6100 2.2000 3.2000 4.1200 13.2000 26.0000 NaN 3.2000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 3.0000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.8900 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.8000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.6000 0 0 0 0 0 -0.0200 0.0100 -0.0800 NaN 2.4200 0 0 0 0 0 -0.0200 0.0130 -0.0800 NaN 2.4000 0 0 0 0 0 -0.0200 0.0130 -0.0800 NaN 2.2000 0 0 0 0 0 -0.0500 0.0200 -0.1000 NaN 2.0000 0 0 0 0 0.0200 -0.0600 -0.0050 -0.1200
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
x = M(2:end,2);
y = M(1,3:end);
z = M(2:end,3:end);
figure
surf(x,y,z.')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by