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!