Variable in plot title
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to store a title of a plot as a variable because of loop programming.
The running variable is P = M_f1. M_f1 is a matrix. But I just want to show the actual name (M_f1) with the variable P in the title.
-> title (P)?
Anyone have an idea?
4 Commenti
Risposta accettata
Ameer Hamza
il 28 Mag 2020
Run this example
titles = {'title1', 'title2', 'title3'};
for i=1:3
figure(i)
plot(rand(1,10));
title(titles{i});
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Title in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!