Thread Subject: For loop

Subject: For loop

From: Bizuayehu Mohammed

Date: 4 Jun, 2009 10:21:01

Message: 1 of 2

Hi I need a help on writing a code for reading data forexample
12 343 54 435 645 645 34 243 1234 13 13 13 13 45 45 64 65 34 56 56 345 345 345 345 35 345 398 56 67 76 76 567 5 7
I want to read from the last number 57 upto 15 numbers (datas) back including 57 everytime. The data is changning everytime and it is an output of other program written in matlab. Any help would be appreciated

Subject: For loop

From: John

Date: 4 Jun, 2009 18:47:01

Message: 2 of 2

data= [12 343 54 435 645 645 34 243 1234 13 13 13 13 45 45 64 65 34 56 56 345 345 345 345 35 345 398 56 67 76 76 567 57];
read15 = data(end:-1:end-14);


"Bizuayehu Mohammed" <bisaye@gmail.com> wrote in message <h0876d$65b$1@fred.mathworks.com>...
> Hi I need a help on writing a code for reading data forexample
> 12 343 54 435 645 645 34 243 1234 13 13 13 13 45 45 64 65 34 56 56 345 345 345 345 35 345 398 56 67 76 76 567 5 7
> I want to read from the last number 57 upto 15 numbers (datas) back including 57 everytime. The data is changning everytime and it is an output of other program written in matlab. Any help would be appreciated

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
loop Debela 4 Jun, 2009 06:24:03
data Debela 4 Jun, 2009 06:24:03
rssFeed for this Thread

Contact us at files@mathworks.com