matrix vector substraction
이전 댓글 표시
z=[1,2,3,4,5,6,7,8;4,5,6,7,8,9,0,1;1,2,3,4,5,6,7,8;10,11,12,13,0,0,0,0];
y=[1,2,3,4];
how can i find z-y without loops thanks.
채택된 답변
추가 답변 (2개)
Amey
2011년 10월 11일
0 개 추천
To do matrix subtraction, dimensions of both the matrices should be same. Here its not the case. Matrix z is 4*8 while matrix y is 1*4
osman
2011년 10월 11일
0 개 추천
댓글 수: 1
Sean de Wolski
2011년 10월 11일
each column of y as it is, i.e. each row of y-transpose? See my answer.
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!