📄 xscript.m
字号:
% xScript.m
% An Example of Script File
%
% Author: HUANG Huajiang
% Copyright 2003 UNILAB Research Center,
% East China University of Science and Technology, Shanghai, PRC
% $Revision: 1.0 $ $Date: 2003/02/05 $
clear
clc
disp('Calculating the reaction rate of ammonia synthesis')
t = input('vector of temperatures (℃) = ')
T = t + 273.15; % T: Temperatre, K
dH = (10000+0.219*T-2.845e-3*T.^2+0.9703e-6*T.^3)*4.184 % dH: Reaction heat (-ΔHr), kJ/kmol
% Ploting the results
plot(T,dH,'o-')
xlabel('T (K)')
ylabel('(-ΔH_r)')
title(' Reaction rate VS temperature')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -