how can i define two series of number in one coloumn?
    6 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Mili Kian
 le 27 Juin 2020
  
    
    
    
    
    Commenté : Image Analyst
      
      
 le 29 Juin 2020
            how can i define two series of number in one coloumn?
EX: a=1:10 , 62:73 
i want gave answer like this: a=1 2 3 4 5 6 7 8 9 10 62 63 64 65 66 67 68 69 70 71 72 73 
0 commentaires
Réponse acceptée
  madhan ravi
      
      
 le 27 Juin 2020
         a = [1:10 , 62:73]
2 commentaires
  Image Analyst
      
      
 le 29 Juin 2020
				Mili, note that this answer ( a = [1:10 , 62:73]) does not give a column vector like you asked for.  To get a column vector, see 3 different ways in my answer below.
Plus de réponses (1)
  Image Analyst
      
      
 le 27 Juin 2020
        Here are three different methods to create your column vector:
 % Method one: create a row vector and transpose it with '
 a = [1:10 , 62:73]'
 % Method two: create a row vector and reshape it to a column vector
 a = reshape([1:10 , 62:73], [], 1)
 % Method three: create two column vectors, then concatenate with ;
 a = [(1:10)'; (62:73)']
0 commentaires
Voir également
Catégories
				En savoir plus sur Display and Exploration 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!


