MATLAB Answers


Combining/concatenating functions/methods?

Asked by Svenn
on 5 Dec 2012

Dear all,

I want to combine different model components including different equations in a flexible way.

I think the best option is to define each model component as a class (I will have different versions of each ‘model component’ and some can be added or left out). I then want to connect the different components (classes) into a model. Thereby, the model will have to execute a flexible set of equations that is “inherited” from the different classes. The number of equations depends on the particular classes I combine. This flexible set of equations is passed on to a solver and should have no redundancies.

Can anybody help me to achieve this combining of equations in an automated way? Thanks in advance!

Best, Svenn


Log in to comment.

0 Answers

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today