Matlab parameters change when i run simulink model?
2 views (last 30 days)
Show older comments
Hi there,
As part of a uni coursework we have had to create a model of a vehicle drivetrain. I have done this in simulink and fairly sure it is correct as i got the answer i recieved. Then based on experimental data i used the parameter estimation in Simulink to tune the parameters. I then updated said parameters in the original Matlab parameter file. However, when I then go to rerun the simulation the parameters I've updated change back to their original values. Could someone please help me stop this, it's driving me mad :P
Kind regards,
Matthew
2 Comments
Divya Yerraguntla
on 6 Jan 2020
Hi Matthew,
Could you check if you ran the MATLAB parameter file after updating the parameters in the file and before running the SIMULINK model because if the MATLAB workspace is'nt updated with the new parameter values then iy will keep using the old values from workspace.
Answers (1)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!