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

  • Follow


Hi. I'm trying to run a matlab code that used to work, and I get this message:
  
??? Undefined function or method 'triang' for input arguments of type 'double'.

I am using Matlab R2009a.
Thanks
0
Reply Patricia 11/9/2010 1:43:08 PM

Hi

triang is part of the Signal Processing toolbox so the first thing to need to ensure is that you have this installed.  Type 

ver

If the output doesn't contain 'Signal Processing Toolbox' then that's your problem.

If you do have the toolbox then we need to check that your path is set correctly.  Type

path

into MATLAB and ensure that the output contains lines like

<Path to your MATLAB>\toolbox\signal\signal/

something else you can try is 

edit triang

which should open the file if the path is set OK.  If all of the above checks out and it still doesn't work then I have another ace up my sleeve but it's a little more complicated.  Let me know how you get on.

Mike
1
Reply Mike 11/9/2010 9:02:53 AM


"Patricia " <pvcarballo@gmail.com> wrote in message <ibbj5c$afg$1@fred.mathworks.com>...
> Hi. I'm trying to run a matlab code that used to work, and I get this message:
>   
> ??? Undefined function or method 'triang' for input arguments of type 'double'.
> 
> I am using Matlab R2009a.
> Thanks

Hi Patricia, 
Do you have the Signal Processing Toolbox?

triang() is part of that toolbox.

Wayne
0
Reply Wayne 11/9/2010 1:50:04 PM

I think not. Thank you very much!!

"Wayne King" <wmkingty@gmail.com> wrote in message <ibbjic$79u$1@fred.mathworks.com>...
> "Patricia " <pvcarballo@gmail.com> wrote in message <ibbj5c$afg$1@fred.mathworks.com>...
> > Hi. I'm trying to run a matlab code that used to work, and I get this message:
> >   
> > ??? Undefined function or method 'triang' for input arguments of type 'double'.
> > 
> > I am using Matlab R2009a.
> > Thanks
> 
> Hi Patricia, 
> Do you have the Signal Processing Toolbox?
> 
> triang() is part of that toolbox.
> 
> Wayne
0
Reply Patricia 11/9/2010 2:05:52 PM

3 Replies
1343 Views

(page loaded in 0.037 seconds)

Similiar Articles:













7/21/2012 1:28:22 AM


Reply: