Matrix and Spreadsheet Manipulation Help

I have a matrix that is about 200 x 10000. I need to divide each row of the matrix by the number in the corresponding row of a 200 x 1 matrix. This would be relatively simple in excel, but my boss is asking for it to be done in matlab. Can anyone help?

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 3 月 11 日

0 投票

YourMatrix ./ repmat(YourVector, 1, size(YourMatrix,2))

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

質問済み:

2013 年 3 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by