Create Array Map or get all indices of the given 2D matrix

1 vue (au cours des 30 derniers jours)
Aravin
Aravin le 14 Avr 2018
Modifié(e) : Jan le 14 Avr 2018
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 commentaire
Jan
Jan le 14 Avr 2018
Modifié(e) : Jan le 14 Avr 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?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by