Using first input of a vector as figure title
Show older comments
Hello, I am trying to create a figure/plot and use the first data point as the title for my figure. Unfortunately, I'm not even close to having the correct syntax and I don't really know where to start. Hope you can help, Thanks.
data = ['mytitle' 1 2 3 4 5]
figure(1)
plot (data(2:6))
title(data(1))
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!