Effacer les filtres
Effacer les filtres

How can i perform for loop in this case?

1 vue (au cours des 30 derniers jours)
RADWAN A F ZEYADI
RADWAN A F ZEYADI le 17 Nov 2021
Commenté : Jan le 21 Nov 2021
Hi
i have matrix with dimension 51*1
i would like to obtain 51*71 *3 because the function that i dealing with the output is 3d array any suggestions? thanks

Réponses (1)

Jan
Jan le 17 Nov 2021
x = rand(51, 1);
M = repmat(x, 1, 71, 3);
size(M)
ans = 1×3
51 71 3
  2 commentaires
RADWAN A F ZEYADI
RADWAN A F ZEYADI le 20 Nov 2021
thanks but i mean i would like to perfurme for loop in order to obtain 153*71
Jan
Jan le 21 Nov 2021
Why do you want to use a for loop, if there is no need to do so?
The question is vague and I can only guess, what you want as output.

Connectez-vous pour commenter.

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