Hi,
I have a matrix with x position as rows, y position as columns and magnitude as data at (x,y). How can I convert this to a 3 column matrix with (x,y, magnitude)
Thanks

1 件のコメント

madhan ravi
madhan ravi 2020 年 9 月 17 日
Mind giving an example data?

サインインしてコメントする。

回答 (1 件)

AAS
AAS 2020 年 9 月 17 日

0 投票

Sorry,
I should rephrase my question. I have a matrix (magmatf- attached)- lets call the rows as R1 and columns and C1 . I created this using sub2ind and accumarray. Now I want to convert this back to a 3 column matrix with first two columns being the combinations of the (R1,C1)indices and the third column should be the value at R1(ind),C1(ind)
Thanks

1 件のコメント

PS
PS 2020 年 9 月 21 日
Hi AAS,
Did you found the solution for it? I am also looking for something similar.
Thanks

サインインしてコメントする。

カテゴリ

質問済み:

AAS
2020 年 9 月 17 日

コメント済み:

PS
2020 年 9 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by