Error Using Function Fplot
显示 更早的评论
T=[-20:20:120]
mu=[4 0.38 0.095 0.032 0.015 0.0078 0.0045 0.0032]
function []=ex4(T,mu)
A=[ones(length(T),1) T', (T.^2)'];
sol=A\(log(mu))';
f=@(x)e^(sol(1)+sol(2)*x+sol(3)*x.^2);
hold on
fplot(f,[min(T),max(T)])
scatter(T,mu)
end
I get and error in fplot, what can it be?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!