pfun.m

来自「Advanced Engineering Mathematics using M」· M 代码 · 共 13 行

M
13
字号
function y=pfun(fnct)% PFUN.M function y=pfun('function')%   Example call: y= pfun('x.^2+x.^3')%    (Note the use of array element-by-element notation)%   Output is a plot of 'function' with range of 0 to 10 %x=[0:0.1:10];y=eval(fnct);plot(x,y);%% Note:  An improvement would be to annotate the plot%     and display the function being plotted. Modify the%     function to allow input of another range of x.	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?