How to call function from m-file in GUI, store data and share it between functions in GUI?
1 view (last 30 days)
Show older comments
Hey,
so I am quite new to Matlab. I am trying to create a GUI with 3 graphs on in. I have some data in excel, I must create a plot, then I have to do a transformation of the data and plot it again on the same graph. I have a function in m.file which does all of it but if I want to call for the function in GUI, it doesn't seem possible. I was trying to use handle and guidata various ways. But I got nothing. If I want to use handle it seems like I can store just one array at the time. But my function returns several arrays (and I obviously need them all), for example:
[A,B,C,D]=myFunction(x,y)
if I call for it like below
a=myFunction(x,y,handle)
I will get some data in a but it is just part of it I reckon.
Could anybody help? Thanks in advance.
0 Comments
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!