Error for Gain block in Simulink
3 次查看(过去 30 天)
显示 更早的评论
Hi there, I'm getting the following error when I try to type "1/(Ih+Ib)" into the parameter value of the Gain block in Simulink.
Both Ih and Ib are defined constants in the MATLAB workspace.
The error is: "Invalid setting in '.../Gain' for parameter 'Gain'."
Any advice on why this is not working. Seems like a simple thing that should not be a problem.
Thanks
3 个评论
Mathieu NOE
2021-1-8
hi
why not define directly in the workspace :
gain =1/(Ih+Ib)
and use that "gain" in the simulink gain block parameter
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!