Equation implementation - different to what I expect
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 25 de Jun. de 2013
You have not given us enough information as to what get_f() does.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!