Cannot Add Parameters - "Parameter is not floating point and will be cast to double"
이전 댓글 표시
I am trying to use the sensitivity analyzer on a golf swing model I have that uses parameters from model workspace. Whenever I try and add parameters to the sensitivity analyzer. Whenever I try and add it says:
"The following parameter(s) are not floating point and will be cast to double: HipConstant"
After saying this it does not add the parameter and does not cast it to double. How do I change my parameters to floating point if that is in fact the issue.
I've tried going into the model workspace and changing parameter data type from auto to double and it doesn't change the behavior.
Edit: I've attached the model and input file to the question.
댓글 수: 4
Sreeram
2024년 9월 23일
I tried reproducing this with 'CounterModel' in 'simulinkcoder/GenerateCodeUsingSimulinkCoderExample', but a parameter set with a non-floating point parameter (K) which I moved to the model workspace was getting added in MATLAB R2024a.
If possible, share the reproduction steps so that the community members can look into.
Dieter
2024년 9월 23일
Sreeram
2024년 9월 24일
@Maven Euler: I fixed it by clearing the PreLoadFcn, and placing ModelInputs.mat in the same folder as the SLX file.
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Design Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!