How to select specific no of terms from a sequence
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have around 1700 values and i want matlab to get input and then select 256 values after the given input. I dont know how to do this
U=unique(point2(:,2));
input('enter b_i');% suppose b_i=U(89) then i want next 256 values except inf. inf can come in the sequence
3 Kommentare
the cyclist
am 21 Sep. 2019
Bearbeitet: the cyclist
am 21 Sep. 2019
What you are asking for is unclear to me.
Is b_i going to be the index of the element (i.e. does b_i==5 mean start at the 5th element of U)? Or is b_i the value of the element (i.e. you need to find the value 5 inside of U, and start from there)?
And then, you need to find the next 256 non-infinite elements -- but also include any values of infinity that are interspersed along with them? Is that right?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!