help-octave
[Top][All Lists]
Advanced

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

Re: octave-control: stepinfo


From: Aidan Macdonald
Subject: Re: octave-control: stepinfo
Date: Sun, 8 Feb 2015 21:30:14 -0800



On Sun, Feb 8, 2015 at 7:59 PM, Doug Stewart <address@hidden> wrote:


On Sun, Feb 8, 2015 at 10:30 PM, Doug Stewart <address@hidden> wrote:


On Sun, Feb 8, 2015 at 10:29 PM, Aidan Macdonald <address@hidden> wrote:

On Sun, Feb 8, 2015 at 6:54 PM, Doug Stewart <address@hidden> wrote:


On Sun, Feb 8, 2015 at 9:48 PM, Aidan Macdonald <address@hidden> wrote:


We always bottom post on this list


 
Aidan Plenert Macdonald
4178 Decoro Street, San Diego, CA 92122

On Sun, Feb 8, 2015 at 6:31 PM, Doug Stewart <address@hidden> wrote:


On Sun, Feb 8, 2015 at 8:41 PM, Aidan Macdonald <address@hidden> wrote:
Hi,

I wrote some code for stepinfo in the octave-control package. I tried to match the guidelines found here

I attached the code. It doesn't match the Matlab standard perfectly, but I was wondering how much I should do before submitting it. I wrote it to take in one system and give the results specified in http://www.mathworks.com/help/control/ref/stepinfo.html.

I was also a little concerned with the math I did. I couldn't find a better explanation of the various parameters than Matlab's website specified. That said, I wrote it and compared it to a few examples using my universities Matlab and they mostly match.

Let me know what I should do to improve it. I am very new to the open source contributing scene, let me know what I should do to help.

Enjoy,

Aidan Plenert Macdonald
4178 Decoro Street, San Diego, CA 92122

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave





I just did a quick read through and I see that for slope you did time over y_yalue
I am sure that it should be the other way   rise over run

I will do more checking later
Doug
--


Thanks for looking. No, I think the slope is right. I am using is to calculate the true times below given the error in the difference from the ideal 90% and 10% voltage. The slope is in units seconds/volts. With an error from the ideal in volts (the error come from discretization of the signal), I linearly approximate the true value.
--
OK you are using a different definition than calculus. 

Like I said I will do more checking.




DAS

Sorry, Does this look better? I am using Gmail

Aidan Plenert Macdonald
4178 Decoro Street, San Diego, CA 92122

Yes very good :-)



Your calculation of  Settling Time is my next concern.

There are many definitions for settling time and I was wondering what you are using?
I see the ST=.02  but then you multiplied it to ypeak.
and you have yavg of the tail etc.

What are you really doing?

Doug


Perhaps you could point me to a better definition, but I was using what Matlab said here that the response has settled when the error abs(yfinal - y(t)) has reached ST times the peak value. So I use convolution to average the y values over a span. I picked an arbitrary averaging width, perhaps you know a better one.

I then take the use average in place of y(t), which I argue in the case of oscillating signals is required. I attempt to minimize the absolute value of the error minus the ST*ypeak value. The second abs(...) is so the min function isn't taking negative error differences.

I take the minimum value of the error - ST*ypeak to be the closest point to settled, and use that corresponding time value.

I looked around, including 2 books I have for more precise definition in terms of the step functions response. Wikipedia, from what I saw, only had it is a function of variables in the system function, but I want a numerical definition.

Thanks.

Aidan Plenert Macdonald
4178 Decoro Street, San Diego, CA 92122
Cell: 805 418 0174

reply via email to

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