How to manually add matrices using only for loops
显示 更早的评论
I have 2 matrices which have no conditions C and D. How do I express using only for loops that they should undergo addition to create another matrix.
4 个评论
Mahesh Taparia
2019-12-10
Can you elaborate once, what you want to do.
Qasim Mahmood
2019-12-10
Adam
2019-12-11
Your matrices need to have one condition - that they are the same size, otherwise how are you defining addition?
Qasim Mahmood
2019-12-11
回答(1 个)
KALYAN ACHARJYA
2019-12-10
Here Loop is not required
result=C+D
2 个评论
Qasim Mahmood
2019-12-10
Mahesh Taparia
2019-12-11
Hi,
Using '+' in code will not be considered that you have used inbuilt function.
类别
在 帮助中心 和 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!