From: Heman on
Hi all,

I have a text file generated from another hardware tool. The text file has loads of differnt values generated over 650,000+ iterations. The sample view of the text file:

10Wrong state entered
30State 1 complete.
70Inverse of Acc = 000000 is FRAC 0000.
90State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 400 and D_R_en0 = 1.
110State 3 complete D_WRA_0 = 000, C_WRA_0 = 000 and C_R_en0 = 1.
130State 4 complete x_k = 339a.
150State 5 complete xorg_k = 00000, h_j = 00000.
170State 6 complete. yhat = 000000000 and h_new = 000000000.
190State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter = 0 at time 190000
210State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 000 and D_R_en0 = 0.
230State 3 complete D_WRA_0 = 3ff, C_WRA_0 = 001 and C_R_en0 = 1.
250State 4 complete x_k = 339a.
270State 5 complete xorg_k = 1c5e4, h_j = 00000.
290State 6 complete. yhat = 000000000 and h_new = 000000000.
310State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter = 1 at time 310000
330State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3ff and D_R_en0 = 0.
350State 3 complete D_WRA_0 = 3fe, C_WRA_0 = 002 and C_R_en0 = 1.
370State 4 complete x_k = 339a.
390State 5 complete xorg_k = 1d872, h_j = 00000.
410State 6 complete. yhat = 000000000 and h_new = 000000000.
430State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter = 2 at time 430000
450State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3fe and D_R_en0 = 0.
470State 3 complete D_WRA_0 = 3fd, C_WRA_0 = 003 and C_R_en0 = 1.
490State 4 complete x_k = 339a.
510State 5 complete xorg_k = 1ebfa, h_j = 00000.
530State 6 complete. yhat = 000000000 and h_new = 000000000.
550State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.

Now, In this i am interested in reading the values of Error and plot the values through Matlab.

Can any one help me with this? It would be great if you could provide a sample code.

Thank you
From: Heman on
"Heman " <kokahemant(a)hotmail.com> wrote in message <i1gf3u$kp3$1(a)fred.mathworks.com>...
> Hi all,
>
> I have a text file which is a output file form another tool consisting of various x,y,z values run over some 650,000+ iterations.
>
> Now i need to use this text file as input to the Matlab and read only values of z and plot a graph.
>
> Can some one tell me how can we do it? It would be great if a sample code could be given.
>
> Thank you

I am sorry guys.. I dont know how this got posted 3 times. I am trying to delete the other 2 repetitive posts but am not able to figure out how.

Sorry for the trouble.

Thank you
From: TideMan on
On Jul 13, 1:31 pm, "Heman " <kokahem...(a)hotmail.com> wrote:
> Hi all,
>
> I have a text file generated from another hardware tool. The text file has loads of differnt values generated over 650,000+ iterations. The sample view of the text file:
>
>                   10Wrong state entered
>                   30State 1 complete.
>                   70Inverse of Acc = 000000 is FRAC 0000.
>                   90State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 400 and D_R_en0 = 1.
>                  110State 3 complete D_WRA_0 = 000, C_WRA_0 = 000 and C_R_en0 = 1.
>                  130State 4 complete x_k = 339a.
>                  150State 5 complete xorg_k = 00000, h_j = 00000.
>                  170State 6 complete.  yhat = 000000000 and h_new = 000000000.
>                  190State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     0 at time               190000
>                  210State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 000 and D_R_en0 = 0.
>                  230State 3 complete D_WRA_0 = 3ff, C_WRA_0 = 001 and C_R_en0 = 1.
>                  250State 4 complete x_k = 339a.
>                  270State 5 complete xorg_k = 1c5e4, h_j = 00000.
>                  290State 6 complete.  yhat = 000000000 and h_new = 000000000.
>                  310State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     1 at time               310000
>                  330State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3ff and D_R_en0 = 0.
>                  350State 3 complete D_WRA_0 = 3fe, C_WRA_0 = 002 and C_R_en0 = 1.
>                  370State 4 complete x_k = 339a.
>                  390State 5 complete xorg_k = 1d872, h_j = 00000.
>                  410State 6 complete.  yhat = 000000000 and h_new = 000000000.
>                  430State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     2 at time               430000
>                  450State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3fe and D_R_en0 = 0.
>                  470State 3 complete D_WRA_0 = 3fd, C_WRA_0 = 003 and C_R_en0 = 1.
>                  490State 4 complete x_k = 339a.
>                  510State 5 complete xorg_k = 1ebfa, h_j = 00000.
>                  530State 6 complete.  yhat = 000000000 and h_new = 000000000.
>                  550State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
>
> Now, In this i am interested in reading the values of Error and plot the values through Matlab.
>
> Can any one help me with this? It would be great if you could provide a sample code.
>
> Thank you

Well, I had a quick look and I could not locate the word Error
anywhere in the sample, so the answer is no I can't help you.
From: Heman on
TideMan <mulgor(a)gmail.com> wrote in message <afb600bd-6a2e-4847-adeb-69974c84114f(a)i16g2000prn.googlegroups.com>...
> On Jul 13, 1:31 pm, "Heman " <kokahem...(a)hotmail.com> wrote:
> > Hi all,
> >
> > I have a text file generated from another hardware tool. The text file has loads of differnt values generated over 650,000+ iterations. The sample view of the text file:
> >
> >                   10Wrong state entered
> >                   30State 1 complete.
> >                   70Inverse of Acc = 000000 is FRAC 0000.
> >                   90State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 400 and D_R_en0 = 1.
> >                  110State 3 complete D_WRA_0 = 000, C_WRA_0 = 000 and C_R_en0 = 1.
> >                  130State 4 complete x_k = 339a.
> >                  150State 5 complete xorg_k = 00000, h_j = 00000.
> >                  170State 6 complete.  yhat = 000000000 and h_new = 000000000.
> >                  190State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     0 at time               190000
> >                  210State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 000 and D_R_en0 = 0.
> >                  230State 3 complete D_WRA_0 = 3ff, C_WRA_0 = 001 and C_R_en0 = 1.
> >                  250State 4 complete x_k = 339a.
> >                  270State 5 complete xorg_k = 1c5e4, h_j = 00000.
> >                  290State 6 complete.  yhat = 000000000 and h_new = 000000000.
> >                  310State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     1 at time               310000
> >                  330State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3ff and D_R_en0 = 0.
> >                  350State 3 complete D_WRA_0 = 3fe, C_WRA_0 = 002 and C_R_en0 = 1.
> >                  370State 4 complete x_k = 339a.
> >                  390State 5 complete xorg_k = 1d872, h_j = 00000.
> >                  410State 6 complete.  yhat = 000000000 and h_new = 000000000.
> >                  430State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     2 at time               430000
> >                  450State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3fe and D_R_en0 = 0.
> >                  470State 3 complete D_WRA_0 = 3fd, C_WRA_0 = 003 and C_R_en0 = 1.
> >                  490State 4 complete x_k = 339a.
> >                  510State 5 complete xorg_k = 1ebfa, h_j = 00000.
> >                  530State 6 complete.  yhat = 000000000 and h_new = 000000000.
> >                  550State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> >
> > Now, In this i am interested in reading the values of Error and plot the values through Matlab.
> >
> > Can any one help me with this? It would be great if you could provide a sample code.
> >
> > Thank you
>
> Well, I had a quick look and I could not locate the word Error
> anywhere in the sample, so the answer is no I can't help you.

Well I am sorry but this portion didnt have th error value generated yet. If i have to paste the error. Anyways, I could some how mange through unix in separating the error values into a text file.

My next question is my new text file has just the column values in hexadecimal. and i want to use all these 1024 values to plot vs time.

How can i do this?

Thank you
From: TideMan on
On Jul 13, 3:10 pm, "Heman " <kokahem...(a)hotmail.com> wrote:
> TideMan <mul...(a)gmail.com> wrote in message <afb600bd-6a2e-4847-adeb-69974c841...(a)i16g2000prn.googlegroups.com>...
> > On Jul 13, 1:31 pm, "Heman " <kokahem...(a)hotmail.com> wrote:
> > > Hi all,
>
> > > I have a text file generated from another hardware tool. The text file has loads of differnt values generated over 650,000+ iterations. The sample view of the text file:
>
> > >                   10Wrong state entered
> > >                   30State 1 complete.
> > >                   70Inverse of Acc = 000000 is FRAC 0000.
> > >                   90State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 400 and D_R_en0 = 1.
> > >                  110State 3 complete D_WRA_0 = 000, C_WRA_0 = 000 and C_R_en0 = 1.
> > >                  130State 4 complete x_k = 339a.
> > >                  150State 5 complete xorg_k = 00000, h_j = 00000.
> > >                  170State 6 complete.  yhat = 000000000 and h_new = 000000000.
> > >                  190State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     0 at time               190000
> > >                  210State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 000 and D_R_en0 = 0.
> > >                  230State 3 complete D_WRA_0 = 3ff, C_WRA_0 = 001 and C_R_en0 = 1.
> > >                  250State 4 complete x_k = 339a.
> > >                  270State 5 complete xorg_k = 1c5e4, h_j = 00000.
> > >                  290State 6 complete.  yhat = 000000000 and h_new = 000000000.
> > >                  310State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     1 at time               310000
> > >                  330State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3ff and D_R_en0 = 0.
> > >                  350State 3 complete D_WRA_0 = 3fe, C_WRA_0 = 002 and C_R_en0 = 1.
> > >                  370State 4 complete x_k = 339a.
> > >                  390State 5 complete xorg_k = 1d872, h_j = 00000.
> > >                  410State 6 complete.  yhat = 000000000 and h_new = 000000000.
> > >                  430State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
> > > going to state S3 , writing 0000 on C_WD_0 and incrementing J_Counter =     2 at time               430000
> > >                  450State 2 complete mue = 000000000, D_W_en0 = 0, D_WRA_0 = 3fe and D_R_en0 = 0.
> > >                  470State 3 complete D_WRA_0 = 3fd, C_WRA_0 = 003 and C_R_en0 = 1.
> > >                  490State 4 complete x_k = 339a.
> > >                  510State 5 complete xorg_k = 1ebfa, h_j = 00000.
> > >                  530State 6 complete.  yhat = 000000000 and h_new = 000000000.
> > >                  550State 7 complete. y_hat_acc_P = 00000000, h_j = 00000.
>
> > > Now, In this i am interested in reading the values of Error and plot the values through Matlab.
>
> > > Can any one help me with this? It would be great if you could provide a sample code.
>
> > > Thank you
>
> > Well, I had a quick look and I could not locate the word Error
> > anywhere in the sample, so the answer is no I can't help you.
>
> Well I am sorry but this portion didnt have th error value generated yet. If i have to paste the error. Anyways, I could some how mange through unix in separating the error values into a text file.
>
> My next question is my new text file has just the column values in hexadecimal. and i want to use all these 1024 values to plot vs time.
>
> How can i do this?
>
> Thank you

You are a very peculiar chap, heman.
First, you ask 3 times for help using the same vague message.
Then you give us some more details, but none that are in any way
relevant to the question you have asked.
Then you ramble on about unix and apparently give up on asking for the
help you previously sought.
And finally, you ask a totally different question about hexadecimal
data.

I cannot follow the workings of your mind, I'm afraid.
I give up.