i’m writing my first MATLAB O-O application and i’m confused about the implementation of compositions, aggregations and relationships in general.
My question is: how to implement an aggregation or an association one-to-many in matlab? Where i can take some examples?
Moreover, i’m using ArgoUml to design my application, is there any plugin to automatic code generation in matlab?
Thanks in advance
Here is a quick example of class association. The scenario consists of a course that can have many students enrolled:
Student.m
Course.m
And here is a code to test the above classes:
The output: