What is the meaning of A (1: ,: ) in matlab
    22 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    alize beemiel
 le 4 Fév 2022
  
    
    
    
    
    Commenté : Image Analyst
      
      
 le 5 Fév 2022
            What is the meaning of A (1 ,: ,:) in matlab
the matrix  A is 4x4 
so What is the meaning  A (1,: ,:) =4*A (2,: ,:)
and  A (4,: ,:) =7*A (2,: ,:)
0 commentaires
Réponse acceptée
  Davide Masiello
      
 le 4 Fév 2022
        If there are three indexes specified, it makes sense only if your matrix has three dimensions.
If it is actually 4x4, then A(1,:,:) yields the same result of A(1,:), i.e. extracting the first row of A.
So, the actual operation you are performing is  A(1,:) = 4*A(2,:), which replaces the first row of A with its second row multiplied by 4.
Likewise, A(1,:) = 7*A(2,:) replaces the first row of A with its second row multiplied by 7.
4 commentaires
  Image Analyst
      
      
 le 5 Fév 2022
				@alize beemiel, spending two hours in this would greatly help you.  A good investment of your time:
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Dates and Time 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!