if and for loop
2 次查看(过去 30 天)
显示 更早的评论
How to write a program for the following statements:
Cpv=0 if vi is less than equal to 10
15
Cpv=(1/15)∑(Vi^2-100) if vi is more than 10
i=1
Cpp=0 if Pj is greater than or equal to 18
50
Cpp=∑(18-Pj) if Pj is less than 18
j=1
kindly help me out. Thanks in advance
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!