The calculation result of the Matlab function is incorrect.
Show older comments
When I was conducting Simulink simulation, I encountered the following issues:
At the same time, the reference value is fixed and different id_p are entered has different calculation results Te_ P. The error is equal to the square of (Te_p-Reference).The key issue is that the calculated value in scenario 2 is closer to the reference value, but the calculated error result is larger, which is contradictory. Please refer to the picture.


2 Comments
madhan ravi
on 18 Dec 2023
Edited: madhan ravi
on 18 Dec 2023
Can you perhaps try it with fixed point data instead? Uint64 with minute slope, 1e-8 for example?
hard study
on 19 Dec 2023
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!