Write in column of matrix
    6 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    armin m
 le 28 Nov 2021
  
    
    
    
    
    Modifié(e) : Yongjian Feng
    
 le 28 Nov 2021
            Hi i wanna write on specific column of matrix. I think it should be like this
A[:,1]=A(i)
but it does not works.tnx
0 commentaires
Réponse acceptée
  Yongjian Feng
    
 le 28 Nov 2021
        
      Modifié(e) : Yongjian Feng
    
 le 28 Nov 2021
  
      Left hand side A is a matrix, but right hand side also an A as a array? Also left hand side shall be 
A(:, 1)
Try this:
A = zeros(2,3);
A(:,1) = [8;9]; % A(:,1) is volumn vector of size 2
A
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Multidimensional Arrays 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!

