x2dplot.m
来自「《实用化工计算机模拟:MATLAB在化学工程中的应用 》这本书光盘里的程序~」· M 代码 · 共 18 行
M
18 行
% x2Dplot.m
% This example demonstrates how to plot a 2-D graphic
%
% Author: HUANG Huajiang
% Copyright 2003 UNILAB Research Center,
% East China University of Science and Technology, Shanghai, PRC
% $Revision: 1.0 $ $Date: 2003/02/04 $
Data_x2Dplot % Retrieve data from the script file Data_x2Dplot.m
t = dat(:,1);
CA1 = dat(:,2);
CA2 = dat(:,3);
plot(t,CA1,'ko-',t,CA2,'b^-')
axis([0 t(end)+0.5 min(min(dat(:,2:3)))-0.1 max(max(dat(:,2:3)))+0.05])
xlabel('Time (min)')
ylabel('C_A_1, C_A_2 (kmol/m^3)')
legend('C_A_1','C_A_2')
title('Concentration profiles')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?