Equation implementation - different to what I expect
Show older comments
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 Comment
Walter Roberson
on 25 Jun 2013
You have not given us enough information as to what get_f() does.
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!