I keep getting error "Error using / Matrix dimensions must agree."
조회 수: 16 (최근 30일)
이전 댓글 표시
this is my entry (dot((R-S),cross((Q-S),(P-S))))/(cross((Q-S),(P-S)))
댓글 수: 0
답변 (1개)
Stephen23
2014년 10월 7일
편집: Stephen23
2014년 10월 7일
./
You can read about the concept of array v.s matrix operations here, along with a list of all functions that this applies to:
댓글 수: 3
Stephen23
2014년 10월 7일
편집: Stephen23
2014년 10월 7일
You tried array division and state that this does not work (too many answers), and you also state that you do not want matrix division. So what exactly is "normal division" with regards to arrays? Please read that "array-vs-matrix-operations" page carefully, this is important to understand.
Your code is basically A/B , for some A and B that you calculate. Can you please print both A and B in MATLAB's command window and write another comment giving these arrays exactly as they appear in the command window. If they are too large, just give the sizes, please.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!