Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
help for project please
    1 Ansicht (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
hello guys, i'm new to matlab and i want to know how to create a Vector that gives a 1  for values between 1 and 10 and 0 otherwise, thank you in advance
0 Kommentare
Antworten (1)
  David Hill
      
      
 am 4 Mai 2020
        y=(x>=1&x<=10);%will provide logical vector where x is your input vector
2 Kommentare
  David Hill
      
      
 am 4 Mai 2020
				What is your input? You could create an input vector.
x=randi(50,1,1000);
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

