From: song ?? on
Hi all
I've got a problem.When I want to use pat2cwav funcion to build a new wavelet,it's error.
Syntax:
[PSI,XVAL,NC] = pat2cwav(YPAT,METHOD,POLDEGREE,REGULARITY)
When METHOD is 'othconst', how to write ‘POLDEGREE’?
[psi,xval,nc] = pat2cwav(Y, 'othconst','', 'continuous') ;


Error in ==> pat2cwav at 258
PSI = interp1(XValOLD,PSI,XVal);


Thanks a lot!
From: Wayne King on
"song ??" <njsongwenhui(a)163.com> wrote in message <hq3b44$4nf$1(a)fred.mathworks.com>...
> Hi all
> I've got a problem.When I want to use pat2cwav funcion to build a new wavelet,it's error.
> Syntax:
> [PSI,XVAL,NC] = pat2cwav(YPAT,METHOD,POLDEGREE,REGULARITY)
> When METHOD is 'othconst', how to write &#8216;POLDEGREE&#8217;&#65311;
> [psi,xval,nc] = pat2cwav(Y, 'othconst','', 'continuous') ;
>
>
> Error in ==> pat2cwav at 258
> PSI = interp1(XValOLD,PSI,XVal);
>
>
> Thanks a lot!

Hi,
You just enter the degree of the polynomial as an integer:

%An example
load ptpssin1;
[psi,xval,nc] = pat2cwav(Y, 'orthconst',3,'continuous');


Hope that helps,
Wayne
From: song ?? on
Thanks o lot ,According to your method ,I've slove this problem!Thank you again!