Hello, could someone kindly assist me in resolving this error?
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1488787/image.png)
采纳的回答
Fangjun Jiang
2023-9-22
A Simulink model describes a "data flow". It is different than a "code flow", where "voltage_input" is just a variable stored in a memory location. Here in Simulink in a Stateflow chart, "voltage_input" represents an input port. You can't do "voltage_input=voltage_input+1" to change the value of the input port.
You can do "TempValue=voltage_input+1" to resolve it. Think of "voltage_input" represents the actual voltage of a physical input port.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!