Equation implementation - different to what I expect
显示 更早的评论
Hi,
What is the equation that this piece of code plots?
θ = -pi:0.1:pi
%Below is f(θ)
f = get_f()
%Set Ax = 1
Ax = 1;
%Implement equation
θnew = θ - Ax * f
plot(θnew, f) %plots f(θ) against θnew
I thought it was plotting f(θ - Ax*f(θ)), but upon plotting this directly I found it was different to the code snippet.
Thanks for your input.
1 个评论
Walter Roberson
2013-6-25
You have not given us enough information as to what get_f() does.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!