I modified the scrip, now it works also for mee:
remove all ~ add dummy parameter:

function u=Sg(xi,eta,q,dip,nu) % dip,~)
function u=Dg(xi,eta,q,dip,nu) % dip,~)
function u=Tg(xi,eta,q,dip,nu) % dip,~)
function u=Cg(xi,eta,q,dip,nu) % dip,~)
function I=I2(xi,eta,q,R,nu) % dip,~)

Dear Martin,
Thanks for your feedback. The modification you made makes the function compatible with older version of Matlab (before 2009b, probably yours ?), but it adds warnings of the code analyser message indicator for any newer versions...
Anyway, I prefer to extend the backward compatibility so I will include your update.
Thanks again.
François.

I modified the scrip, now it works also for mee:
remove all ~ add dummy parameter:
function u=Sg(xi,eta,q,dip,nu) % dip,~)
function u=Dg(xi,eta,q,dip,nu) % dip,~)
function u=Tg(xi,eta,q,dip,nu) % dip,~)
function u=Cg(xi,eta,q,dip,nu) % dip,~)
function I=I2(xi,eta,q,R,nu) % dip,~)
regards Martin

I have problems using the code it says:
?? Error: File: okubo92.m Line: 249 Column: 28
Unexpected MATLAB operator.
When I look at this line I see:
function u=Tg(xi,eta,q,dip,~)
maybe the ~ is problematical

Comment only

02 Mar 2012

ORTHPOLYFIT, ORTHPOLYVAL
Direct transform of multivariate series to a polynomial domain by the Gaussian quadrature methods.

Comment only