Is there a difference in performance using the class-folder vs single file approach to define a MATLAB class?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Aug 2017
In general there is not a difference in performance between the class-folder and single file approach. When using MATLAB classes of either style, you may perceive a "first-time" cost when you first use the class in a MATLAB session, because the class is loaded on demand. The first-time cost may differ slightly between styles depending on your class, but after the class is loaded, there is not a difference in performance of methods.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!