Plot arrows of the gradient for function of one variable

1 view (last 30 days)
Hello everyone,
how can I plot arrows of the gradient for function of one variable? For example f(x)= - x^2.
Thank you so much for your time.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!