From: awu PROM on
There is still an error when debugging the file.
??? Error: File: C:\MATLAB6p1\work\polyfitn.m Line: 141 Column: 24
Expected a variable, function, or constant, found "|".
Could you fix it?
From: us on
"awu PROM" <arwut365(a)hotmail.com> wrote in message <hme853$cds$1(a)fred.mathworks.com>...
> There is still an error when debugging the file.
> ??? Error: File: C:\MATLAB6p1\work\polyfitn.m Line: 141 Column: 24
> Expected a variable, function, or constant, found "|".
> Could you fix it?

NO... - YOU have to fix it...
- make sure you run jd's FEX submission as a function...
- or show CSSM how you run the program...

us
From: John D'Errico on
"awu PROM" <arwut365(a)hotmail.com> wrote in message <hme853$cds$1(a)fred.mathworks.com>...
> There is still an error when debugging the file.
> ??? Error: File: C:\MATLAB6p1\work\polyfitn.m Line: 141 Column: 24
> Expected a variable, function, or constant, found "|".
> Could you fix it?

Read my response to your comment on polyfitn.

You have too old a version of matlab to run it, and
I am not willing to figure out what has changed in
MATLAB in the 10 years or more since your MATLAB
release came out.

So you can choose to make the (probably minor)
changes in the code itself, or you can use one of the
many tools out there that can do a linear regression
in MATLAB.

help regress
help lscov
help lsqr
help slash

In any event, you will need to learn something about
linear regression analysis, which is a good thing
anyway if you will be solving these problems.

John