plotplane.m

来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 11 行

M
11
字号
function [x,y] = plotplane(m,x0,startx,upx)
% determine points in the plane m'(x-x0) = 0 for plotting purposes
% 
% Copyright 1999 by Todd K. Moon

if(m(2)==0)
  error('not set up to plot vertical lines');
else
  x = linspace(startx,upx,10);
  y = m(1)/m(2)*(x0(1)-x) + x0(2);
end

⌨️ 快捷键说明

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