How to add plot titles in a for loop
Afficher commentaires plus anciens
I want to add a title to these plots that changes in each loop
AccNames = {'Longnitudinal'; 'Lateral'; 'Normal'; 'Pitch'; 'Roll'; 'Yaw'};
for i = 1:6
figure()
histogram(TaxiRevy{i},100,'normalization','probability')
title(sprintf('Exceedence Diagram of %d Accelaration', AccNames{i}))
end
This code returns two and tree digit numbers inserted into the title, not the strings specified, if anyone could give me some guidance i'd be very grateful!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Title 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!