How data or numbers from excel tranfer to matlab workspace and communicate with the matlab GUI?

1 view (last 30 days)
Im a newbie to matlab and have been playing with the excel data with few numbers so that the matlab can read the number from the excel and save it in the the workspace so that matlab GUI can read the numbers and do some calculation from the data it got from the workspace.
Below is matlab to read the excel : xlsread('filename.xls','sheet','row/column in excel');
After the matlab read the value in the excel, i store it in the variable x. So now, i have no idea on how the GUI to read the stored data x. I have read and come across with few function include evalin and setappdata but i don't really know how to use it. Can someone please guide me ? Thanks for the help.

Answers (1)

Sara
Sara on 22 May 2014
Don't do it that way. Read the excel file in the opening function of the GUI or where appropriate (e.g., when you press on a pushbutton). Instead of saving the data in x, save them in handles.x so that they will be available in each callback of the GUI.

Community Treasure Hunt

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

Start Hunting!