?? ucircle.m
字號:
function ucircle(npts)%UCIRCLE Draws the unit circle%% UCIRCLE draws the unit circle, using 90 points, and set % x/y axis to be of equal size%% UCIRCLE(NPTS) draws the unit circle, using NPTS points%%%%%%%%%%%%%%%%%% ucircle.m %%%%%%%%%%%%%%%%%%%%% Discrete-Time Control Problems using %% MATLAB and the Control System Toolbox %% by J.H. Chow, D.K. Frederick, & N.W. Chbat %% Brooks/Cole Publishing Company %% September 2002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%const = 180/pi;if nargin == 0, npts = 90;enddeltheta = 360/npts;theta = [0:deltheta:360]/const;plot(sin(theta),cos(theta))axis equal%%%%%%%%%%
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -