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.

 Accepted Answer

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 Comments

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.

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!