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?

 Réponse acceptée

Friedrich
Friedrich le 8 Juil 2011

1 vote

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 commentaire

Sarah
Sarah le 8 Juil 2011
Thank you, that was far simpler than I was trying to make it

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by