使用';时出现SCILAB未定义的可变错误;polarplot&x27;

使用';时出现SCILAB未定义的可变错误;polarplot&x27;,plot,scilab,Plot,Scilab,在scilab中运行polarplot时出现以下错误 // Program to plot using polarplot function t= 0:.01:2*%pi; polarplot(sin(t)) xtitle('Using polarplot' 结果: exec('D:\mangesh\SCILAB PROJ\sample\polarplot.sce', -1) at line 13 of function polarplot ( C:\PROGRA~1\SCILAB~1.

在scilab中运行polarplot时出现以下错误

// Program to plot using polarplot function
t= 0:.01:2*%pi;
polarplot(sin(t))
xtitle('Using polarplot'
结果:

exec('D:\mangesh\SCILAB PROJ\sample\polarplot.sce', -1)
at line    13 of function polarplot ( C:\PROGRA~1\SCILAB~1.1\modules\graphics\macros\polarplot.sci line 25 )
at line 3 of executed file D:\mangesh\SCILAB PROJ\sample\polarplot.sce

Undefined variable: rho

polarplot函数至少需要2个输入参数θ和ρ, 在你的例子中,你忘了给出半径的演变。例如:

   polarplot(sin(t), ones(t))

polarplot函数至少需要2个输入参数θ和ρ, 在你的例子中,你忘了给出半径的演变。例如:

   polarplot(sin(t), ones(t))

如其他用户所示,
polarplot
功能需要至少两个输入向量,就像大多数其他绘图功能一样。在这种情况下,您可能需要以下内容:

// Program to plot using polarplot function
t = 0:.01:2*%pi;
polarplot(t, sin(t));
xtitle('Using polarplot');
这将产生:


如其他用户所示,
polarplot
功能需要至少两个输入向量,就像大多数其他绘图功能一样。在这种情况下,您可能需要以下内容:

// Program to plot using polarplot function
t = 0:.01:2*%pi;
polarplot(t, sin(t));
xtitle('Using polarplot');
这将产生:


@没问题。很高兴回馈社会。请接受正确的答案并竖起大拇指:)如果他们不是你想要的,请沟通并进一步解释你的问题。@mangesh没问题。很高兴回馈社会。请接受正确的答案,并竖起大拇指:)如果它们不是您想要的,请沟通并进一步解释您的问题。