hello, Can someone please help write the following algorithm as a Matlab Function for Simulink? i am having trouble with the else statement and time increments. Thanks!
显示 更早的评论

3 个评论
dpb
2022-7-2
The prepared text/instructioins makes this appear as homework exercise -- it's general practice to coach/answer specific MATLAB Q? for homework, but not to just provide ready-to-run solutions...
So, show us your work so far and ask specifically where you've gotten stuck.
Muhammad Rameez Rashid
2022-7-3
Muhammad Rameez Rashid
2022-7-3
回答(1 个)
AMIT POTE
2022-7-3
0 个投票
You can go through the following documentation to understand writing if-else statements in MATLAB
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
