My function f(x) doesn't display (compute?) the result for when f = 0.

1 visualización (últimos 30 días)
Conrad Thomson
Conrad Thomson el 5 de Mzo. de 2021
Comentada: Conrad Thomson el 9 de Mzo. de 2021
The x array has 9 distinct values (0 through 4 in steps of 0.5). f(x) only has 8. What am I doing wrong?
Thanks!

Respuestas (1)

Alan Stevens
Alan Stevens el 5 de Mzo. de 2021
Replace
diff(g)
by
gradient(g)

Community Treasure Hunt

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

Start Hunting!

Translated by