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?

 Accepted Answer

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 Comment

Thank you, that was far simpler than I was trying to make it

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!