Variable in plot title
이전 댓글 표시
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
KSSV
2020년 5월 28일
How many variables you have? How you are accessing the variable? Better show us the code how you are plotting...
Mohammad Sami
2020년 5월 28일
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
2020년 5월 28일
P = 'M_f1' ;
title(P)
Mepe
2020년 5월 28일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!