Multiplier Function making Matlab crash

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Maria Cordero
Posts: 3
Joined: Mon Jun 17, 2024 12:38 am

Multiplier Function making Matlab crash

Post by Maria Cordero » Fri Nov 22, 2024 1:24 am

Hi!

I've been working on a model on Matlab, and noticed it was crashing a lot. When trying to isolate the issue, I got to the conclusion that the multiplier function I added is the one causing it. What I've noticed is that the first time I run it, it doesn't cause any issues, but after a few tries, it crashes. I've checked the forum for some solutions, but up until now I haven't been able to solve it. I've been testing it with a simple function like this:

Code: Select all

LinearF =LinearFunction(1,0);
MultFunction= MultiplierFunction(LinearF , 2);
I also tried to clone the function when using it as an input for the multiplier function, but it's still crashing:

Code: Select all

LinearF =LinearFunction(1,0);
MultFunction= MultiplierFunction(LinearF.clone() , 2);
Thank you for the help,
Maria C.

Tags:

POST REPLY