How to store cell array or data in the GUI?

I made a script that read an xls file and put it into a cell array,plot the data from the excel file values and save the figure plot. I am trying to make that script into a simple GUI application. I manage to read the xls file but I don't know how to store variables and use it in the GUI.
Thanks

 Accepted Answer

3 Comments

I have figure it out by using assignin and global. Will that work better if my variable is a cell array and used in for loops?
This is not a good idea. If you don't want to use guidata, you can store your data in userdata of any of your objects
I understand, thank you sir.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!