Re: Got error when using AR function
- From: "Steven Lord" <slord@xxxxxxxxxxxxx>
- Date: Wed, 28 May 2008 12:56:33 -0400
"Taylor Tain" <taylor2765@xxxxxxxxx> wrote in message
news:g1i60q$fmq$1@xxxxxxxxxxxxxxxxxxxxx
Hi everyone,
I follow an example in the Help:
y = sin([1:300]') + 0.5*randn(300,1);
y = iddata(y);
mb = ar(y,4,'burg');
mfb = ar(y,4);
bode(mb,mfb)
I don't know why the following error message pop up:
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class
'iddata'.
Any idea?
The literal meaning of the error message is you're trying to use an iddata
object as an index into a variable, but you haven't define how to convert
the object into a set of indices (that's what SUBSINDEX does.)
In this case, you're not actually trying to use it as an index -- instead,
you likely have a variable named either ar or bode and the lines where you
try to call those functions are actually being treated as attempts to index
into those variables.
Set a breakpoint on the line where you call IDDATA and see which of those
variables you've created earlier in your code.
--
Steve Lord
slord@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Got error when using AR function
- From: Taylor Tain
- Re: Got error when using AR function
- From: Walter Roberson
- Re: Got error when using AR function
- References:
- Got error when using AR function
- From: Taylor Tain
- Got error when using AR function
- Prev by Date: Re: generate random number for certain distribution
- Next by Date: Re: RSM Interactions plot
- Previous by thread: Got error when using AR function
- Next by thread: Re: Got error when using AR function
- Index(es):
Relevant Pages
|
Loading