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

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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

[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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by