vectors must be same length
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I got a problem with this error:
Error using plot Vectors must be the same length.
Error in RealniGenerator_student (line 61) plot(t,U)
I have made Real Generator and it works fine. But when i want to plot results it shows this error. How to fix this or how to write plot then that it will work?
Thank you for answers in advance.
2 commentaires
Réponses (1)
Jan
le 10 Jan 2017
The message is clear: "Vectors must be the same length."
The solution is to provide two array with the same size. Of course if you plot a signal versus the time, both inputs must have the same number of elemens (or the signal is a matrix).
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!