How can I call my Excel sheet values to use in another pushbutton_callback for another algorithm in GUI?

1 view (last 30 days)
To use my excel sheet values i had used the commands
[filename, pathname]=uigetfile
FileNameString=strcat(pathname, filename) %Same as FullFileName
Yourdata=xlsread(FileNameString)
now i want to use 'Yourdata' values in another pushbutton_callback in which i am using a for loop.
  1 Comment
Brij Bhushan Singh
Brij Bhushan Singh on 21 Jun 2015
Thanks a lot for the reply. But I think this works for the whole data set which is the input. What if I need the matrix coming out from the algorithm i.e a matrix of m by n to plotted against x and if i have to take both these matrices and to plot in another pushbutton_callback

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 21 Jun 2015
[filename, pathname]=uigetfile
FileNameString=strcat(pathname, filename) %Same as FullFileName
Yourdata=xlsread(FileNameString)
handles.Yourdata=Yourdata
guidata(hObject,handles)
To get your data from another object
Yourdata=handles.Yourdata

More Answers (0)

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!