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!