I have been trying to create a MATLAB function in simulink to use the magicformula built in function where i can just put in camber, slip angle etc... and get Fy and Mz. I saw that there is the built in simulink block, but Mz isn't there and i really need it as an output for my model. I knw that there is also the blocksets for vehicle dynamics but they don't do exactly what I want. Where I try to run my function, it says that the object oriented code in MagicFormulaTyre isn't supported by simulink. Is there any way to make it work? Thank you!!