Borrar filtros
Borrar filtros

Setting a Variable value as Label in Plot

4 visualizaciones (últimos 30 días)
Amit
Amit el 23 de Jul. de 2013
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 comentario
Daniel Shub
Daniel Shub el 23 de Jul. de 2013
Editada: Daniel Shub el 23 de Jul. de 2013
Presumably you mean file_name='Strain'; otherwise we will need to know what Strain is.

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Jul. de 2013
Editada: Azzi Abdelmalek el 23 de Jul. de 2013
xlabel(file_name)

Categorías

Más información sobre Directed Graphs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by