take input in array
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Tejas Mahajan
 le 9 Oct 2020
  
    
    
    
    
    Commenté : Ameer Hamza
      
      
 le 9 Oct 2020
            if i want user to to input n number of values in the input window in array form how should i do it
0 commentaires
Réponse acceptée
  Ameer Hamza
      
      
 le 9 Oct 2020
        vec = input('Enter an array: ')
run the above line and type
[1,2,3,4]
in the command window. You will get
>> vec
vec =
     1     2     3     4
2 commentaires
  Ameer Hamza
      
      
 le 9 Oct 2020
				You can use the UI Editfield: https://www.mathworks.com/help/releases/R2020b/matlab/ref/uieditfield.html.
Plus de réponses (1)
Voir également
Catégories
				En savoir plus sur Develop Apps Using App Designer 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!


