【发布时间】:2018-12-18 04:35:05
【问题描述】:
我正在尝试对图进行建模,如附图所示。我正在建模的方程也显示在图像中。
我的编码是,
sigmafu=1660;
phi=0.0:0.01:90;
e=2.7183; %I searched on internet to find e value of Euler number and I
%found this.
%Dont know whether MATLAB bydefault has value of e, like MATLAB has value
%pi.
pw= (-0.3)*phi*(180/180);
F=sigmafu*(0)* 2.7183^(pw);
plot (phi,F)
使用上述编码时出现以下错误:
使用 ^ 时出错。输入必须是标量和方阵。要计算元素 POWER,请改用 POWER (.^)。
myeqsetlin 中的错误(第 126 行):F=sigmafu*(0)* 2.7183^(pw);
谁能帮我更正代码?另外,MATLAB有没有e(欧拉数)的默认值,如果有怎么用?
【问题讨论】:
标签: matlab function graph exponent