How to write a R program to enter two matrices A and B of size m x n and perform matrix addition, subtraction and multiplication | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to write a R program to enter two matrices A and B of size m x n and perform matrix addition, subtraction and multiplication

How to write a R program to enter two matrices A and B of size m x n and perform matrix addition, subtraction and multiplication (element-wise) operation?

21st Jan 2022, 6:52 AM
Xavier
1 Answer
+ 1
Answer : https://code.sololearn.com/cpVgBH3t3ElD/?ref=app (I WOULD LIKE TO SUGGEST YOU TO RUN THIS PROGRAM IN VISUAL STUDIO CODE SO THAT YOU CAN UNDERSTAND THE PRINTING AND ACCEPTING STATEMENTS )
5th Feb 2022, 10:10 AM
Debraj Mandal
Debraj Mandal - avatar