Can I define a specific method to run upon loading obj from mat file?
Show older comments
I have a class with a constructor which works fine. When loading the obj from a mat file however I would like another method to run instead of the constructor. Is that possible to define?
Answers (2)
Micke Malmström
on 17 May 2022
0 votes
Steven Lord
on 17 May 2022
0 votes
From the documentation section talking about how to customize object saving and loading, overload the loadobj method.
Categories
Find more on Algorithm Design Basics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!