How to pass a table generated from a function back to app-designer?

6 Ansichten (letzte 30 Tage)
Leon
Leon am 11 Mär. 2020
Kommentiert: Leon am 11 Mär. 2020
I have a function like this to generate a data table:
function Function1(app, PATH, FILE);
File_mat = fulfile(PATH, FILE);
load(File_mat);
...
...
...
T1 = table(Var1, Var2, Var3, ...);
end
I plan to call the above function from app-designer by using a command like the below:
Function1(app, app.Path, app.File.Value);
My question is how do I pass the generated table T1 back to app-designer?
Thanks!

Akzeptierte Antwort

Rik
Rik am 11 Mär. 2020
Bearbeitet: Rik am 11 Mär. 2020
Can't you do something like this?
app.T1=Function1(app, app.Path, app.File.Value);
Of course that would require you to change the function signature to this:
function T1=Function1(app, PATH, FILE);

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by