Can I define a specific method to run upon loading obj from mat file?
显示 更早的评论
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?
回答(2 个)
Steven Lord
2022-5-17
0 个投票
From the documentation section talking about how to customize object saving and loading, overload the loadobj method.
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!