How to plot graph from table row by row using app designer

Hello
I have data table as text file. I import it as table to matlab app designer. How can I plot a graph from that table row by row using app designer.

 Respuesta aceptada

Subhadeep Koley
Subhadeep Koley el 30 de Oct. de 2019
Editada: Subhadeep Koley el 30 de Oct. de 2019
I am assuming you have already imported the text file into the table. Now, download the attached .zip file and refer to the example app, which plots a line graph from a table for every row.
You can tweak various parameters in the example code to make it work the way you want. Hope this helps!

5 comentarios

Thank you for help.
but I want to plot the first row then the second then third one and so in the same function because all data table are readings for the same expermints but it written row by row.
thanks for help again
Bilal, I have plotted every row in the same graph only.
Can you explain exactly what are you expecting as an output?
You want one line plot for each row of the table right ?
Thanks for help again.
I hope the following pic could help me to explain what i want.
thanks matlab.png
Okay, now I got the clear idea. Download the attached .zip file and refer to the modification in the function updateplot there. It gives output something like this
tableGraph1.PNG
Thank you very much. it is work now.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Oct. de 2019

Comentada:

el 30 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by