How do I plot a table of results? where V is the table of results i want to plot
2 次查看(过去 30 天)
显示 更早的评论
clear all
close all
clc
g=9.81;
Q = 1:0.1:40;
for i = 1:length(Q)
for Dpen=1:1:5;
A(1,Dpen)= pi*Dpen.^2/4;
V(i,Dpen)= Q(i)/A(1,Dpen);
%plot(Q,V(:,Dpen))
end
end
0 个评论
回答(1 个)
Star Strider
2016-3-11
My choice would be:
Q = 1:0.1:40;
Dpen=1:1:5;
[Qm,Dm] = meshgrid(Q, Dpen);
V = Qm./(pi*Dm.^2/4);
figure(2)
mesh(Qm, Dm, V)
grid on
xlabel('Q')
ylabel('Dpen')
zlabel('V')
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!