help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error using step() function


From: Lukas Reichlin
Subject: Re: Error using step() function
Date: Sat, 26 Jan 2013 22:46:49 +0100

On 26.01.2013, at 21:41, Lourenco <address@hidden> wrote:

> Hi, everyone.
> 
> When I execute:
> 
>    mm1 = tf(-.50405, [1 .98752] , -1)
> 
> And afterwards, execute:
> 
>    step(mm1)
> 
> It happens the following error:
> 
>    error: __stairs__: A(I,J): row index out of bounds; value 2 out of bound
> 1
>    error: called from:
>    error:   /usr/share/octave/3.6.2/m/plot/stairs.m at line 133, column 8
>    error:   /usr/share/octave/3.6.2/m/plot/stairs.m at line 72, column 24
>    error:   /usr/share/octave/packages/control-2.3.52/__time_response__.m
> at line 175, column 13
>    error:   /usr/share/octave/packages/control-2.3.52/step.m at line 67,
> column 14
> 
> 
> Does anybody knows how to overcome this issue?
> 
> Thanks in advance.

Hi Lourenco

You can try to specify a final time:

        step (mm1, 450)

where 450 stands for the number of time units.
There seems to be a bug in the function which calculates the final time, but I 
have not found it yet. Note that you should update from control-2.3.52 to the 
current control-2.4.1 as I only tested it with the most recent version.

Lukas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]