【问题标题】:MATLAB fplot3 commandMATLAB fplot3 命令
【发布时间】:2018-09-25 00:47:13
【问题描述】:

我想使用以下代码绘制 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.

【问题讨论】:

    标签: matlab matlab-figure matlab-guide


    【解决方案1】:

    正如错误消息所说,fplot3 不采用数值。请改用符号函数。

    x = @(t) exp(-t).*sin(t);
    y = @(t) exp(-t).*cos(t);
    z = @(t) t*0 + 1;
    fplot3(x,y,z);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多