Variable in plot title
Afficher commentaires plus anciens
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 commentaires
KSSV
le 28 Mai 2020
How many variables you have? How you are accessing the variable? Better show us the code how you are plotting...
Mohammad Sami
le 28 Mai 2020
Can you also clarify your question. I don't understand what you mean by
"But I just want to show the actual name (M_f1) with the variable P "
KSSV
le 28 Mai 2020
P = 'M_f1' ;
title(P)
Mepe
le 28 Mai 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance 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!