# External Functions for GRM (Matlab)

**URL:** <https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172>\
**Category:** CADET Troubleshooting\
**Created:** [September 15, 2020, 3:44pm UTC](https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172 "2020-09-15T15:44:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasFuchs](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@ThomasFuchs](https://forum.cadet-web.de/u/ThomasFuchs)\
**Post date:** [September 15, 2020, 3:44pm UTC](https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172/1 "2020-09-15T15:44:43Z")

</div>

Hello,  
I am trying to apply the external functions as demonstrated in the example “externalFunctionMultiple” to a Genral Rate Model (the example uses SingleGRM) in Matlab. When adding the functions to the model by adressing mGrm.externalFunctions (as in the example) I get the error:  
“Unrecognized property ‘externalFunctions’ for class ‘GeneralRateModel’.”  
Is there a different way to add the functions to the model for a General Rate Model?

Thank you in advance for any suggestions

---

<div class="post-metadata">

**Author:** ![s.leweke](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/s.leweke/32/1323_2.png) [@s.leweke](https://forum.cadet-web.de/u/s.leweke)\
**Post date:** [September 16, 2020, 7:26am UTC](https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172/2 "2020-09-16T07:26:23Z")

</div>

Hi Thomas,

The property `externalFunctions` belongs to the system of unit operations. Any external function has to be registered there.

In the example, a `SingleGRM` object is used. This object represents a single `GeneralRateModel` within a `ModelSystem` (for convenience). When the `externalFunctions` property on the `SingleGRM` is used, it actually accesses the property on the `ModelSystem` part of the `SingleGRM`.

Long story short: Please use `mSys.externalFunctions` instead (if your `ModelSystem` object is called `mSys`).

---

<div class="post-metadata">

**Author:** ![ThomasFuchs](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@ThomasFuchs](https://forum.cadet-web.de/u/ThomasFuchs)\
**Post date:** [September 16, 2020, 9:14am UTC](https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172/3 "2020-09-16T09:14:44Z")

</div>

Hello Samuel,  
yes that works, thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![h.lanzrath](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/h.lanzrath/32/1186_2.png) [@h.lanzrath](https://forum.cadet-web.de/u/h.lanzrath)\
**Post date:** [January 27, 2026, 7:28am UTC](https://forum.cadet-web.de/t/external-functions-for-grm-matlab/172/4 "2026-01-27T07:28:56Z")

</div>


