i want to do both action at a time.
matrix addition and substraction
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
{a1; a2; 0}
i want to R1-R1 and R2+R1
4 comentarios
Respuestas (1)
KSSV
el 31 de En. de 2022
Editada: KSSV
el 31 de En. de 2022
@pramod kumar What ou ask is a very basic question. I would suggest you to take a basic introductory course in MATLAB.
Your question is simple.
% random matrix for demo
a1 = rand(15,1) ;
a2 = rand(15,1) ;
% add
a = a1+a2 ;
% subtract
b = a1-a2 ;
5 comentarios
Ver también
Categorías
Más información sobre Operators and Elementary Operations en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!