graph from a dataset
Mostrar comentarios más antiguos
Hi ,
I have data as follow for about 58 rows.
Name Area lotNum Type Month1 Month2 Month3.... MonthN
Rest1 biz 123 south 5 5 7 .... 3
Rest1 nonBiz 123 south 2 11 8 ..... 1
Rest1 biz 456 south 11 9 3 ..... 24
rest2 biz 123 south 9 3 23 ..... 21
rest3 biz 789 south 23 3 4 ...... 1
I want to draw graph for each row for months on x-axis and value on y-axis. Also is it possible to have this graph saved in a file. ?
Thanks.
6 comentarios
jgg
el 10 de Dic. de 2015
If I understand your question correctly, this should produce either 58 seperate graphs, or a single graph with 58 lines on it. Are you sure this is what you want to do? That's probably going to be unreadable.
If it is, you can just concatenate your N months variables together by columns, into a 58xN matrix (call it M) where the rows correspond to the 58 observations. Then, you can just do plot(M,[1:N]). You can then save the figure or edit it, etc.
Neesha
el 10 de Dic. de 2015
Neesha
el 10 de Dic. de 2015
Neesha
el 10 de Dic. de 2015
Respuestas (1)
Image Analyst
el 10 de Dic. de 2015
0 votos
To save the graph(s), use export_fig(): http://blogs.mathworks.com/pick/2010/05/28/creating-and-exporting-publication-quality-graphics/
1 comentario
Neesha
el 14 de En. de 2016
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!