p13_17.m

来自「Programs for the book Advanced Engineeri」· M 代码 · 共 15 行

M
15
字号
% P13_17.M Surface normals to a sphere
%
% In this case, the command sphere can be used. Otherwise, compute the
%  gradient. Then, use command surfnorm to plot results.
%
clear
clf
[x,y,z]=sphere(20);
surfnorm(x,y,z)
xlabel('x')
ylabel('y')
%
% for a general surface, compute the gradient
%

⌨️ 快捷键说明

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