plotdata.m
来自「现代控制系统(matlab程序)」· M 代码 · 共 16 行
M
16 行
% Appendix F: MATLAB Basics, Section F.5, p. 830-831.%% MATLAB's use of scripts is described in Section F.5. % The script described in Figure F.21 is given here. It% can be used to plot y(t)=sin(alpha*t), where the parameter % alpha is input at the command prompt prior to executing % the m-file. The value of alpha must exist in the workspace % prior to invoking the script.%t=[0:0.01:1];y=sin(alpha*t);plot(t,y)xlabel('Time [sec]')ylabel('y(t) = sin( alpha * t )')grid
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?