Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How do i create this kind of matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
Given a scenario where the matrix is given as shown,
g=[X1 Y1; X2 Y2] and
p=[Q1 P1; Q2 P2]
There is a need to produce a matrix that becomes
result=[X1-(X1-0+Q1) Y1-(Y1-0+P1); X2-(X2-Q1+Q2) Y2-(Y2-P1+P2)]
How do I get such matrix given that it has n x m rows and columns?
답변 (1개)
Image Analyst
2013년 12월 24일
First of all, g is not involved in the result at all because it subtracts out. Then the result would be something like
result = [p(1,:);diff(p)]
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!