how can I call a class in a gui?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi! im working on OOP, I have defined a class TimeData by a script and its saved in the working folder.
now how can i call that class in my GUI. Should i call in opening function. or in any button?
1 Kommentar
Antworten (1)
Matt J
am 14 Sep. 2021
I have defined a class TimeData by a script
Don't you mean you defined it in a classdef file? The constructor function for a class can be called from anywhere, as long as the classdef file is on the Matlab path. In particular, the current folder is always on the Matlab path.
3 Kommentare
Matt J
am 17 Sep. 2021
You haven't shown us the error messages that you get when you try to call it. There's no reason why you shouldn't be able to.
Siehe auch
Kategorien
Mehr zu Software Development Tools finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!