Create Array Map or get all indices of the given 2D matrix
1 view (last 30 days)
Show older comments
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 Comment
Jan
on 14 Apr 2018
Edited: Jan
on 14 Apr 2018
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?
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!