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
How can I call my Excel sheet values to use in another pushbutton_callback for another algorithm in GUI?
1 view (last 30 days)
Show older comments
Brij Bhushan Singh
on 21 Jun 2015
Commented: Brij Bhushan Singh
on 21 Jun 2015
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.
Accepted Answer
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
0 Comments
More Answers (0)
See Also
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!