dividing row matrices to give row matrices

Hi,
I am dividing a 1x5000 by a 1x5000 matrix and, depending on how I code it, either get a single value or a 5000x5000 matrix which then means I cannot process anymore as the memory has been exceeded.
It is only a single row in the 5000x5000 matrix that is populated by real numbers, is there a way to make Matlab output just that row rather than having to extract it from the square matrix?

 채택된 답변

Friedrich
Friedrich 2011년 7월 8일

1 개 추천

What are you trying to achieve exactly? It sounds like you are doing a/b or a\b which are totally different operations. a\b will calculate a matrix X such that a*X = b. You dont have to do a a\b to get the row, its the same like doing b./a(end).

댓글 수: 1

Sarah
Sarah 2011년 7월 8일
Thank you, that was far simpler than I was trying to make it

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2011년 7월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by