Re: [Scilab-users] Frequency response

2018-09-19 Thread Tan Chin Luh
Hi Claus, If I understand you correctly (as mentioned by Rafael "I do not see how you can “close the loop”, other that testing your theoretical model against experimental data?" 1. you have a system which you have theoretical result (reference model) 2. you have another set of data which you

Re: [Scilab-users] Frequency response

2018-09-18 Thread Claus Futtrup
Hi Tan, et al. Thank you for the complete response to my initial request. This is very helpful for me to understand ... but if this is indeed the equivalent of the matlab script, I wonder about if the help I found in the matlab forum is helpful or not. The reason I'm still wondering is becaus

Re: [Scilab-users] Frequency response

2018-09-17 Thread Rafael Guerra
“just notice that the answer similar as the one Tim provided, just a bit confused on Claus' comment on the "random" data” Claus problem is defined in the script: “stepresponse - 2018-09-16.sce” that was forwarded earlier ___ users mailing list users@

Re: [Scilab-users] Frequency response

2018-09-17 Thread Tan Chin Luh
On 18/9/2018 5:15 AM, Rafael Guerra wrote: Chin Luh: good to know but how does that solve Claus Futtrup specific problem? ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users just notice that the answer similar

Re: [Scilab-users] Frequency response

2018-09-17 Thread Rafael Guerra
Chin Luh: good to know but how does that solve Claus Futtrup specific problem? ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Frequency response

2018-09-17 Thread Tan Chin Luh
Hi, I was facing similar issue sometime ago while trying to translate from matlab to scilab, as both of them have diff way of representation. In Matlab/Octave, when we are using polynomial, we are defining them in vector/matrix form such as : num = [1 2 3 4]. The catch is here: when we use t

Re: [Scilab-users] Frequency response

2018-09-16 Thread Rafael Guerra
r 16, 2018 5:49 PM To: users@lists.scilab.org Subject: Re: [Scilab-users] Frequency response Hi Rafael My problem is defined as a response function, where I use contour integral to achieve the step response. Then I differentiate it to achieve the impulse response. In essense I already "kn

Re: [Scilab-users] Frequency response

2018-09-16 Thread Claus Futtrup
Hi Tim ZPK can mean many things (Google Search, I suppose) ... but after search I understand it's something with Zero Pole ... don't know what the letter K stands for, though. What I like about the Matlab example is that random data is generated to represent the impulse response, so this rep

Re: [Scilab-users] Frequency response

2018-09-16 Thread Tim Wescott
I didn't answer about ZPK because I didn't know either! It's not so much a Scilab thing as -- are you getting the signal processing right? On Sun, 2018-09-16 at 18:15 +0200, Claus Futtrup wrote: > Hi Tim > >  >So, this is complicated. > > I admitted from the very beginning, it's probably just m

Re: [Scilab-users] Frequency response

2018-09-16 Thread Alan Teeder
-Original Message- From: Claus Futtrup Sent: Sunday, September 16, 2018 5:15 PM To: users@lists.scilab.org Subject: Re: [Scilab-users] Frequency response Hi Tim So, this is complicated. I admitted from the very beginning, it's probably just me that doesn't know h

Re: [Scilab-users] Frequency response

2018-09-16 Thread Claus Futtrup
Hi Tim >So, this is complicated. I admitted from the very beginning, it's probably just me that doesn't know how to read the Scilab manual. It cannot be complicated for someone who knows and/or understand the manual. BTW, I also notice that nobody answered the question what ZPK means? ... Z

Re: [Scilab-users] Frequency response

2018-09-16 Thread Claus Futtrup
rs on behalf of Claus Futtrup *Sent:* Saturday, September 15, 2018 11:15:08 PM *To:* users@lists.scilab.org *Subject:* Re: [Scilab-users] Frequency response Hi Samuel and Scilabers My problem with freq and repfreq is that they require a "sys" input, which implies I need to describe a respo

Re: [Scilab-users] Frequency response

2018-09-15 Thread Rafael Guerra
Just to refresh some definitions, for non-DSP specialists like me. For a Linear Time Invariant system with impulse response h(t) and transfer function H(f), input/output signals x(t) / y(t) and Fourier transforms X(f) / Y(f) we have: y(t) = x(t) * h(t) (convolution) ?? Y(f) = X(f).H(f)

Re: [Scilab-users] Frequency response

2018-09-15 Thread Tim Wescott
So, this is complicated. First, if you have an impulse response, in the form of a vector of samples, then you can turn it into a FIR filter, and you can find the frequency response of that with any of the available Scilab tools.  I'm not sure if there's a more direct way, but if you had an impulse

Re: [Scilab-users] Frequency response

2018-09-15 Thread Rafael Guerra
@lists.scilab.org Subject: Re: [Scilab-users] Frequency response Hi Samuel and Scilabers My problem with freq and repfreq is that they require a "sys" input, which implies I need to describe a response function of some sort. For example (from the Scilab web-help): https://help.scilab.org/

Re: [Scilab-users] Frequency response

2018-09-15 Thread Claus Futtrup
Hi Samuel and Scilabers My problem with freq and repfreq is that they require a "sys" input, which implies I need to describe a response function of some sort. For example (from the Scilab web-help): https://help.scilab.org/docs/6.0.1/en_US/freq.html (example code) s=poly

Re: [Scilab-users] Frequency response

2018-09-14 Thread Samuel Gougeon
Le 14/09/2018 à 20:57, Claus Futtrup a écrit : Dear Scilabers I have calculated an impulse response and wish to do an FFT to achieve the frequency response. I know what to expect. In the matlab forum someone asked the same question and was recommended to use freqz ... I wonder what would be

[Scilab-users] Frequency response

2018-09-14 Thread Claus Futtrup
Dear Scilabers I have calculated an impulse response and wish to do an FFT to achieve the frequency response. I know what to expect. In the matlab forum someone asked the same question and was recommended to use freqz ... I wonder what would be the equivalent function in Scilab? https://www.