⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exp_ellipse.asv

📁 具有图形操作界面的支持向量机多类分类实验系统.全部用Matlab实现,可以实现多种分类识别. 这是本人的毕业设计的附属程序
💻 ASV
字号:
% ELLIPS Creates ellipse.
%
% Synopsis:
%  [X,Y] = ellips(Center,Shape,radius,n)
%  [X,Y,Z] = ellips(Center,Shape,radius,n)
%
% Description:
%  This function interpolates ellipse by lines in 2d space
%  or by patches in 3d space respectivelly. The ellipsoid 
%  is described as
%         radius^2=(x-Center)'*Shape*(x-Center).
%   
%  The number of lines used for interpolation is given
%  by argument n in 2d case. In 3d case the argument
%  n has the same meaning in the Matlab function sphere(n).
%
% Input:
%  Center [2x1] or [3x1] Center of the ellipse.
%  Shape [2x2] or [3x3] Shape of the ellipse.
%  n [1x1] Density of interpolation (default 20).
%
% Example:
%
% 2d ellipse
%  [x,y] = ellips([1;1],[1 0.5;0.5 1],1);
%  figure; plot(x,y);
%
% 3d ellipsoid
%  [x,y,z] = ellips([1;1;1],[1 0 0;0 2 0; 0 0 3],1);
%  figure; mesh(x,y,z);

%2d ellipse
  [x,y] = ellips([1;1],[1 0.5;0.5 1],1);
  figure; plot(x,y);

% 3d ellipsoid
  [x,y,z] = ellips([1;1;1],[1 0 0;0 2 0; 0 0 3],1);
  figure; mesh(x,y,z);

⌨️ 快捷键说明

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