Problem on code while plotting a graph
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Angus Wong
le 19 Juin 2018
Commenté : Star Strider
le 19 Juin 2018
I am plotting a graph, with the line:
figure;
hold on ;
.....
title('function');
.....
hold off;
But I ended up with an error of "Index exceeds array bounds." on the title line. How can I solve this?
4 commentaires
Réponse acceptée
Star Strider
le 19 Juin 2018
Modifié(e) : Star Strider
le 19 Juin 2018
The actual error is most likely in the line just above your title call.
Check it to be certain it is entered correctly.
EDIT — (16:10 UCT)
What is your ‘y’ function?
Note that in your code, and using fplot, ‘y’ must be a function of one variable.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!
