How to make calculations over an interval throughout an entire vector?
1 次查看(过去 30 天)
显示 更早的评论
I have a vector, say "Voltage" and it's 400 elements long. I want to calculate the min and max every 100 indicies and store that in a vector. How can I do that? I was thinking a for loop would be what I want, but I don't know how to make the loop scan the entire Voltage vector and make the min and max calculations every 100 indicies. Would it be a nested loop?
0 个评论
回答(1 个)
另请参阅
类别
在 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!