Create Array Map or get all indices of the given 2D matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone,
Let say I have two array a and b. Let a = [1 2 3], b = [4 5 6]; I want to get C= [1 1 1 2 2 2 3 3 3 4 4 4;4 5 6 4 5 6 4 5 6].
In short, I want indices of given 2D matrix.
1 件のコメント
Jan
2018 年 4 月 14 日
編集済み: Jan
2018 年 4 月 14 日
Your C has 12 elements in the first row and 9 in the 2nd. This means, that it is not a valid matrix at all. In addition it is not clear, what "indices of given 2D matrix" means.
Please explain the relation between the inputs and outputs and post a valid example of the output.
It is not clear, why you set the tag "crossproduct".
Is this a homework question?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!