How do you save and then plot multiple workspace variables onto one graph
16 次查看(过去 30 天)
显示 更早的评论
I have some code that reads a text file created from a macro in ImageJ.
Background: I have an AVI of the flow iof water across a membrane. In ImageJ, i threshold the image and track the front of the flow in pixels (i.e. 255 and 0). Then a text file is create with frames against average pixel. Then matlab reads the text file and ocnverts the pixel into distance and the frames into time.
However, i have multiple AVI's that i need to process and plot the height of each onto one graph. I have been doing this manually by copying and pasting the data into one excel file so i can plot all my data sets onto one graph. However, excel keeps crashing because of the large amounts of data. Is there an easier way to do this in MATLAB without having to export data to an excel file. Maybe, saving the height as a workspace variable each time i run the code for each text file and then plot all the variables agaibnst eachother?
Thanks in advance,
Grace
0 个评论
回答(1 个)
Shadaab Siddiqie
2021-7-30
Form my understanding you want to plot graph from multiple workspace variable. You can use Simulink data inspector for visualizing large amount for data (even from workspace variables). When your workspace data is in a format that built-in readers do not support, you can write a custom data reader to import the data into the Simulation Data Inspector.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!