Is it possible to copy a matrix with size (52x2) to another matrix with size (52x3)
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Iremsu Savas
le 29 Sep 2018
Commenté : Iremsu Savas
le 29 Sep 2018
Hello everyone, I want to copy a matrix with size (52x2) to another matrix which is full of zeros (52x3) and I want the third column of (53x3) matrix to stay still full of zeros. Is it possible? And how can ı do it? Thank you
0 commentaires
Réponse acceptée
Walter Roberson
le 29 Sep 2018
Source = randi(10, 52, 2); %for example
Target = zeros(52, 3);
Target(:,1:2) = Source;
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur NaNs 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!