Modifying values in matrix
1 次查看(过去 30 天)
显示 更早的评论
Write a MATLAB code that modifies the values in MockMatrix using the following conditions:
- A nested for loop must be used
- Replace values between 100 and 200 (inclusive) with 100
- Replace values between 600 and 700 (inclusive) with 600
Determine the sum of all the values in this new modified matrix. Use fprintf('%16.0f', total) to print all of the digits.
i've attached the data here. thank you.
回答(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!