row of a random size matrix
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
hi,
i wanted to know how to seperate each row of a randomly sized (m,n)  matrix
0 commentaires
Réponses (2)
  Shayan Sepahvand
      
 le 22 Sep 2021
        Use this code:
[m, n] = size(X);% X is that random matrix
row_mat = zeros(m, 1);
for i = 1:m
    row_mat = X(i,:);
end
row_mat is the seperated row
Voir également
Catégories
				En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
			
	Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


