Is it possible to cut a method function from the .mlapp file into a separate .m file by creating a library of functions?

1 Ansicht (letzte 30 Tage)
For example:
function summ(app,a,b)
app.EditField.Value = a + b;
end
  2 Kommentare
qwer ty
qwer ty am 30 Mai 2018
Bearbeitet: qwer ty am 30 Mai 2018
Scare class size. And the fact that you can not make a dark theme and increase the text volume in App Designer. Then very tired eye.
qwer ty
qwer ty am 30 Mai 2018
Ofc i can do that
% IN .mlapp file
app.EditField.Value = summ(a,b);
% IN .m file
function c = summ(a,b)
c = a + b;
end
But i need use eval include app. dot prefics.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by