user5603723
user5603723

Reputation: 193

Converting Matlab function (mscript) to simulink model

I wrote a M function (Mscript), but sadly I cannot use this function directly in my model (not even as Matlab function block), because of the TargetLink restrictions.

if there any way I can convert the function to a simulink model or do I have to do it from the scratch?

Upvotes: 0

Views: 308

Answers (1)

TZ3
TZ3

Reputation: 21

The latest version of targetlink does support the function block in simulink models.

An alternative to actual simulink blocks might be a stateflow chart. Targetlink is limited to the action language c, but still rewriting it in a stateflow function in c might be closer to the original m code than converting it to blocks.

Upvotes: 1

Related Questions