Error using plot vectors must be the same length

1 visualización (últimos 30 días)
Dyani Peterson
Dyani Peterson el 10 de Jul. de 2021
Respondida: Star Strider el 10 de Jul. de 2021
How do I fix this error?

Respuestas (1)

Star Strider
Star Strider el 10 de Jul. de 2021
It’s not easy to determine what the problem is.
One possibility is to use the gradient function instead of using diff to calculate the approximate derivative.
The outputs of gradient have the same dimensions as the input. The outputs of diff are less than the dimensions of the input.
.

Categorías

Más información sobre Scatter Plots 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