how do i print this matrix?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi!
i want to print this matrix..
i think there is a easy pattern in this matrix but i couldn't found..!
Is there a easy way to create this matrix?

0 commentaires
Réponse acceptée
KSSV
le 1 Avr 2022
A = zeros(6,5) ;
A(1:3,1:3) = 1 ;
A(:,4) = [1 0 0 1 1 1]' ;
A(:,5) = [1 0 0 1 1 1]' ;
A
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices 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!