MATLAB: N Transit compartment in 2-compartment PK model in Simbiology

SimBiology

Greetings,
In looking at the solution provided for the transit compartments simbiology file, I attempted to edit to make it a 2-cpt model with transit compartments.
Would you be able to help me modify this code located in a simbiology file at the bottom of this post to be a 2-compartment model with a transit compartment.
I would like to do a model fit and then simulate the transit (three transit compartments) with a 2-compartment pk model with first order absorption.
I would want to fit the following paramters: Vc, Vp, CL, Q, Mtt, N (for # of transit compartments). The model here is for a 1 compartment model:
Thanks for any help with this.
Andy

Best Answer

Hi Andy,
I have attached a SimBiology implementation of a two compartment model with transit compartments.
I hope this helps.
Best regards,
Jérémy