MATLAB fplot3 命令
MATLAB fplot3 command
我想使用以下代码绘制 3D 表面 ((e^-t)sint,(e^-t)cost,1)。
x=(exp(-t))*sin(t); y=(exp(-t))*cos(t); z=1;
fplot3(x,y,z)
我收到此错误消息:
Error using fplot3 (line 46)
Expected input to be one of these types:
function_handle, sym
Instead its type was double.
如错误消息所述,fplot3
不采用数值。请改用符号函数。
x = @(t) exp(-t).*sin(t);
y = @(t) exp(-t).*cos(t);
z = @(t) t*0 + 1;
fplot3(x,y,z);
我想使用以下代码绘制 3D 表面 ((e^-t)sint,(e^-t)cost,1)。
x=(exp(-t))*sin(t); y=(exp(-t))*cos(t); z=1;
fplot3(x,y,z)
我收到此错误消息:
Error using fplot3 (line 46)
Expected input to be one of these types:
function_handle, sym
Instead its type was double.
如错误消息所述,fplot3
不采用数值。请改用符号函数。
x = @(t) exp(-t).*sin(t);
y = @(t) exp(-t).*cos(t);
z = @(t) t*0 + 1;
fplot3(x,y,z);