From: Florence Baluyot on
Hello =)

I'm having trouble trying to use the 'hilbert' function and I'm hoping someone can give me advice.

When I try to run the hilbert example in the help file:
xr = [1 2 3 4];
x = hilbert(xr)

I get: "??? Undefined function or method 'hilbert' for input arguments of type 'double'."
as an error.

I've tried:
">> ver"
and get :"Signal Processing Toolbox Version 6.7 (R2007a)"
so I should have the toolbox

If I type in "hilb" and hit tab, it shows "hilbert" as one of the options. One of the things it also shows is "hilberttransformdemo," which I ran to test, and got this error: "??? Undefined function or method 'rectwin' for input arguments of type 'double'."

I've updated my cache by going to >file>preferences>general>update cache button and also restarted MATLAB and my computer

If I type "doc hilbert," the help screen pops up for it, but if I type "hilbert.m," I get "??? Undefined variable "hilbert" or class "hilbert.m"."

I've tried running "fft" and that works.

I'm completely stumped on what to do next to get this function to work :( If anyone has any more ideas to try, I'd love to hear them. Thanks!
From: Wayne King on
"Florence Baluyot" <ftbMatStuff(a)gmail.com> wrote in message <hs7dvb$dlm$1(a)fred.mathworks.com>...
> Hello =)
>
> I'm having trouble trying to use the 'hilbert' function and I'm hoping someone can give me advice.
>
> When I try to run the hilbert example in the help file:
> xr = [1 2 3 4];
> x = hilbert(xr)
>
> I get: "??? Undefined function or method 'hilbert' for input arguments of type 'double'."
> as an error.
>
> I've tried:
> ">> ver"
> and get :"Signal Processing Toolbox Version 6.7 (R2007a)"
> so I should have the toolbox
>
> If I type in "hilb" and hit tab, it shows "hilbert" as one of the options. One of the things it also shows is "hilberttransformdemo," which I ran to test, and got this error: "??? Undefined function or method 'rectwin' for input arguments of type 'double'."
>
> I've updated my cache by going to >file>preferences>general>update cache button and also restarted MATLAB and my computer
>
> If I type "doc hilbert," the help screen pops up for it, but if I type "hilbert.m," I get "??? Undefined variable "hilbert" or class "hilbert.m"."
>
> I've tried running "fft" and that works.
>
> I'm completely stumped on what to do next to get this function to work :( If anyone has any more ideas to try, I'd love to hear them. Thanks!

Hi Florence, Are you running Matlab in a networked (concurrent) configuration where you have to checkout licenses for particular toolboxes? fft is a base MATLAB function, not a Signal Processing Toolbox function. It appears that you are not able to use the Signal Processing Toolbox. If you run the command

license('test','signal_toolbox')

does it return a 1?

try

license('checkout','signal_toolbox')

If you are running MATLAB under a concurrent license, check with your local administrator.

Wayne
From: Florence Baluyot on
"Wayne King" <wmkingty(a)gmail.com> wrote in message
>
> Hi Florence, Are you running Matlab in a networked (concurrent) configuration where you have to checkout licenses for particular toolboxes? fft is a base MATLAB function, not a Signal Processing Toolbox function. It appears that you are not able to use the Signal Processing Toolbox. If you run the command
>
> license('test','signal_toolbox')
>
> does it return a 1?
>
> try
>
> license('checkout','signal_toolbox')
>
> If you are running MATLAB under a concurrent license, check with your local administrator.
>
> Wayne

This appears to be the problem! Since it showed up when I checked >>ver, I assumed the license was still updated. Now I know I need to talk to our tech guy to update this. Thanks for the help, Wayne!