필터 지우기
필터 지우기

Setting a Variable value as Label in Plot

조회 수: 4 (최근 30일)
Amit
Amit 2013년 7월 23일
I have a variable file_name which stores the name of the file eg.
file_name=Strain;
now i want to plot a graph having Strain on the X-axis , actually this will be a repetitive procedure and i will be getting new string(values) in the variable file_name each time and will be using them to plot new graph , how can i do this.
Regards, Amit
  댓글 수: 1
Daniel Shub
Daniel Shub 2013년 7월 23일
편집: Daniel Shub 2013년 7월 23일
Presumably you mean file_name='Strain'; otherwise we will need to know what Strain is.

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 23일
편집: Azzi Abdelmalek 2013년 7월 23일
xlabel(file_name)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by