Adding all the elements of a 1-d matrix/array in Simulink
显示 更早的评论
Hi
I have a variable named "power" that contains 25 constant values. I would like to sum them up using a function block in Simulink. I would like that to be done instantly in one timestep. Any suggestions to what can I use?
Thanks
采纳的回答
更多回答(1 个)
Niklas Nylén
2014-4-1
1 个投票
Use the Add block with one single + in the "list of signs". See attached example.
类别
在 帮助中心 和 File Exchange 中查找有关 Naming Conventions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!