Problem on code while plotting a graph
Show older comments
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 Comments
Angus Wong
on 19 Jun 2018
Edited: Angus Wong
on 19 Jun 2018
Paolo
on 19 Jun 2018
figure;
hold on ;
title('function');
hold off;
Works fine on my machine with 2017b, what Matlab version are you using?
Angus Wong
on 19 Jun 2018
Edited: Angus Wong
on 19 Jun 2018
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!