Code duplication
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi People,
I'm from the Java / OO - area and I currently work on a Simulink-Model that is full of code duplication.
For example there are some equations for movements in 3 directions. In the current implementation these are 3 copies of the same code (which are went through parallel). I find that really ugly!
Is there an elegant way to surpass such a thing? Maybe like replacing those copies by a reference to a special block?
Greetings, Andy
2 Kommentare
Kaustubha Govind
am 7 Mai 2012
TAB: Perhaps you should post this as an answer, because creating a library is the right solution!
Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing 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!