Borrar filtros
Borrar filtros

Gradient computation

2 visualizaciones (últimos 30 días)
Adetunji
Adetunji el 21 de En. de 2012
x =90 91 92 93 94 95 96 97 98 99 100
y=54 55 54 54 57 57 63 56 57 56 56
am trying to compute the gradient of the above in matlab..any idea?
Comment on this Answer

Respuesta aceptada

David Young
David Young el 21 de En. de 2012
You could use gradient(y), provided that it's always the case that x increases linearly, as in your example.

Más respuestas (0)

Categorías

Más información sobre Directed Graphs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by