[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax|Parse error on code that used to run
From: |
richard |
Subject: |
Re: Syntax|Parse error on code that used to run |
Date: |
Fri, 28 Mar 2014 06:44:12 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Mar 27, 2014 at 10:24:37PM +0100, JuanPi wrote:
> On Thu, Mar 27, 2014 at 10:19 PM, richard <address@hidden> wrote:
> > Hi All,
> >
> > This is the problem:
> >
> > octave:1> Y = ["(","'" E00"'",];
> > parse error:
> >
> > syntax error
> >
> >>>> Y = ["(","'" E00"'",];
> > ^
> What is the expected value of the second entry of Y?
>
Complete expression for Y is as follows
Y = ["(","'" E00"'",];
j=0; while (j< 52)
a1= num2str(E(1,j+1));
a2= num2str(E(1,j+2));
a3= num2str(E(1,j+3));
a4= num2str(E(1,j+4));
a5= num2str(E(1,j+5));
a6= num2str(E(1,j+6));
a7= num2str(E(1,j+7));
a8= num2str(E(1,j+8));
a9= num2str(E(1,j+9));
a10= num2str(E(1,j+10));
YY = ["," a1,", ", a2,", " a3, ", ", a4, ", ", a5, ", ", a6,", ", a7,", " a8,
", ", a9, ", ", a10, ];
Y = cstrcat(Y, YY);
j=j+10;
endwhile
YY= [");"];
Y = cstrcat(Y, YY);
TIA
Richard A Lough