Plotting a table ????

2 次查看(过去 30 天)
Saud Aldhafyan
Saud Aldhafyan 2022-11-18
I made a mistake. I want to
1) plot exess air and overall purity and co2 capture.
2) express air and co2 utilization in fresh feed and fresh free flow rate after co2 utilization.
Here is my code which is not working. Can someone please help me?
A=[
5 99.11 0.92 412 672
10 99 0.9065 405.25 678.75
15 98.91 0.89 397.85 686.15
20 98.81 0.8718 389.73 694.27
25 98.71 0.8526 381.13 702.87
30 98.61 0.8321 371.97 712.03
];
F = figure;
F.Position = [100 100 800 400];
subplot(1,2,1);
plot(A(:,1),A(:,2),'-bo','linewidth',1.5);grid on;hold on;
%plot(A(:,1),A(:,3),'-ro','linewidth',1.5);grid on;
str = {'(A)'};
text(10,80,'A','FontSize',14,'FontWeight','bold')
xlabel('Excess Air','FontWeight','bold');
ylabel('Purity CO2','FontWeight','bold')
legend('1^{st} stage','2^{nd} stage','Location','NorthEast')
Warning: Ignoring extra legend entries.
subplot(1,2,2);
plot(A(:,1),A(:,3),'-go','linewidth',1.5);grid on;hold on;
%plot(A(:,1),A(:,3),'-ko','linewidth',1.5);grid on;
str = {'(B)'};
text(13,.77,'B','FontSize',14,'FontWeight','bold')
xlabel('Excess Air','FontWeight','bold');ylabel('Stage Cut','FontWeight','bold')
legend('Overall','Stage cut','Location','NorthEast')
Warning: Ignoring extra legend entries.
subplot(1,2,1)
legend("Position", [0.28832,0.31347,0.16722,0.12086])
subplot(1,2,2)
legend("Position", [0.73589,0.33223,0.16556,0.10762])
  3 个评论
Saud Aldhafyan
Saud Aldhafyan 2022-11-18
utilization means reuse
Cris LaPierre
Cris LaPierre 2022-11-18
it seems you understand how to plot data in a table, as you do that already in your code. What is the actual MATLAB question you have?

请先登录,再进行评论。

回答(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