matrix addition and substraction
조회 수: 4 (최근 30일)
이전 댓글 표시
{a1; a2; 0}
i want to R1-R1 and R2+R1
댓글 수: 4
답변 (1개)
KSSV
2022년 1월 31일
편집: KSSV
2022년 1월 31일
@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
KSSV
2022년 1월 31일
This will throow error. It will not yun, as a is a scalar and you are trying to access it a svector.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!