ex1_5.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 13 行
M
13 行
% M-file (EX1_5.M) to evaluate the function % y= a*exp(-1.2t) - 3.0*exp(-2t) % INPUT: Coefficient a and time t% OUTPUT: y(t) displayedfprintf('Compute y= a*exp(-1.2*t) - 3.0*exp(-2*t) \n')a=input('Coefficient a, a= ');t=input('Variable t, t= ');%% Display resultsfprintf('\n Function: y=%g*exp(-1.2*%g)-3.0*exp(-2*%g) \n',a,t,t)y=a*exp(-1.2*t) - 3.0*exp(-2*t) % End M-file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?