How do i do x1<=x<=x2 in matlab?
Ältere Kommentare anzeigen
I am trying to enter x1<=x<=x2 for matlab. however i am useless at coding and i cannot find a way to get this to work.
Please help
Akzeptierte Antwort
Weitere Antworten (1)
Hello Alexander
x=1:10;
%Let's say you want to find the values of x between 3 and 7
x1=3;
x2=7;
x>=3 & x<=7
x(x>=3 & x<=7)
1 Kommentar
Alexander
am 11 Apr. 2023
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!