Error using plot vectors must be the same length
Afficher commentaires plus anciens
How do I fix this error?

Réponses (1)
Star Strider
le 10 Juil 2021
1 vote
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.
.
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!