[n,d] = numden(tf);
Does that notation imply that the numerator is a 1, andI have a transfer function called tf(1:43001). How do I obtain the
numerator and the denominator, so that I can use fvtool(num,den)?
Thank you.
So this transfer function is defined by a dataset and you want to calculate a rational function with polynomials in the numerator and denominator. Assuming that such a rational approximation exists. I am familiar with polynomial fits but I'm not sure you can find rational approximations to arbitrary data.My tf(1:43001) is refering to the transfer function from 1 data points to 43001 data points. (1:43001) is the number of data points.
tf=Ysec400c./Ypri400c; % transfer function=FFT(secondary) / FFT(primary)
One more time with feelingYes, my transfer function is output/input of my system, H(s) = Y(s)/X(s). My tf is a 1x43001 array of data points. I would like to find out the Y(s) and X(s) to represent it as for example, (eg (2s+1)/(s^2+2s+1)). Because I need to perform digital simulations( using Simulink or PSCAD) using the transfer function (eg (2s+1)/(s^2+2s+1)).
I concur, from analysing your code the tf array will not provide you the necessary information to derive the transfer function and hence the numerator/denominator for the function fvtool.One more time with feeling
The points are irrelevant. Only the poles and zeros matter.
Try this as a proposal, I'm not sure how it will work.Since my tf=Ysec400c./Ypri400c, how do I represent Ysec400c and Ypri400c into a polynomial respectively?
[h,r] = deconv(y,x);
by Steve Arar
by Gary Elinoff
by Jake Hertz
by Steve Arar