How to select specific no of terms from a sequence

1 view (last 30 days)
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
input('enter b_i');% suppose b_i=U(89) then i want next 256 values except inf. inf can come in the sequence
sadiqa ilyas
sadiqa ilyas on 22 Sep 2019
I have seventeen hundred number e.g stored in U.i.e
b_i is the input and it should be from U
e.g i enter b_i=U(3) which is 8
then i need next 256 values starting from 8 and if inf comes in the sequence then ignore infinity and pick the next value

Sign in to comment.

Answers (0)


Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by