Help with matrix manpulation.
古いコメントを表示
Hello!
I have a problem with matrix operation. I have a complex matrix M(n,m), I also have a matrix MM(n,m) with where each row have positions for each row where I want to keep the value for matrix M. Shown i this example
M=[1 2 3;3 2 1;2 3 1];
MM=[1 0 0;1 3 0;3 0 0];
What I want out of this is:
R=[1 0 0;3 0 1;0 0 1];
I have tried to solve this problem but obviously I am not skilled enough. Please help me.
Regards Björn
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!