circle.m
来自「hi i have a huge collection are you int」· M 代码 · 共 21 行
M
21 行
function [x,y] = circle(x0,y0,r,N)% CIRCLE Define a circle.% [x,y] = CIRLCE(x0,y0,r,N) returns coordinates of a% circle centred on (x0,y0) and with radius r. N is% the number of points around the circle. If N is% missing the, 10 points are returned. All inputs must% be scalars.% A. Knight, May 1995if nargin<4 N = 15;endr = r*ones(1,N);theta = linspace(0,2*pi,N);[x,y] = pol2cart(theta,r);x = x + x0;y = y + y0;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?