From: Jonathan on
Hello,

I wish to use 'csaps' to fit a cubic smoothing spline to my data. My x and y data are stored in the workspace as 801 x 1 doubles. When I try to use csaps as follows:

pp = csaps(x,y,p);

where p is the fitting parameter I get the error message:

??? Undefined function or method 'csaps' for input arguments of type
'double'.

I've tried storing the x and y data as e.g. int64 but I get the same error message except with 'int64' instead of 'double'.

I have also tried copying & pasting the examples from the help for the csaps function, but I get the same problem. I've literally only started using Matlab in the last week or so, so no doubt I'm doing some basic thing wrong or I don't have something installed that I need - so apologies if this a ridiculously elementary question!

Thanks in advance for your help.
From: us on
"Jonathan "
> ??? Undefined function or method 'csaps' for input arguments of type
> 'double'.

a hint:
- make sure you own the spline tbx...
- eg,

ver
% -or-
ver splines

us
From: Wayne King on
"Jonathan " <jonathan.mckendry(a)strath.ac.uk> wrote in message <hm0fh4$4sp$1(a)fred.mathworks.com>...
> Hello,
>
> I wish to use 'csaps' to fit a cubic smoothing spline to my data. My x and y data are stored in the workspace as 801 x 1 doubles. When I try to use csaps as follows:
>
> pp = csaps(x,y,p);
>
> where p is the fitting parameter I get the error message:
>
> ??? Undefined function or method 'csaps' for input arguments of type
> 'double'.
>
> I've tried storing the x and y data as e.g. int64 but I get the same error message except with 'int64' instead of 'double'.
>
> I have also tried copying & pasting the examples from the help for the csaps function, but I get the same problem. I've literally only started using Matlab in the last week or so, so no doubt I'm doing some basic thing wrong or I don't have something installed that I need - so apologies if this a ridiculously elementary question!
>
> Thanks in advance for your help.

Hi Jonathan, do you have the Curve Fitting Toolbox installed?

If you enter

>>ver

at the command line, you should see an entry for

Curve Fitting Toolbox

I suspect that either you don't have it installed, or something went wrong with the installation.

Also, entering

>> which csaps

should return something ending in:

toolbox\curvefit\splines\csaps.m

Wayne
From: Jonathan on
> Hi Jonathan, do you have the Curve Fitting Toolbox installed?
>
> If you enter
>
> >>ver
>
> at the command line, you should see an entry for
>
> Curve Fitting Toolbox
>
> I suspect that either you don't have it installed, or something went wrong with the installation.
>
> Also, entering
>
> >> which csaps
>
> should return something ending in:
>
> toolbox\curvefit\splines\csaps.m
>
> Wayne

----
Thanks for your replies,

When I type

>>ver

I do see an entry for Curve Fitting Toolbox and Spline Toolbox,

However, when I type

>> which csaps

I get C:\Program Files\MATLAB\R2009b\toolbox\splines\csaps.m % Has no license available

I guess this means that it is installed but the license hasn't activated or something like that. I'll speak to our IT officer and see if he can help - I'll report back!

Cheers,
Jonathan