[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)?
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);
|Thread starter||Similar threads||Forum||Replies||Date|
|W||Need to find a transfer function by hand and plot using Matlab||Homework Help||3|
|How to find the steady-state error for this response in Matlab?||Homework Help||1|
|R||(help) How to find r-r interval in Matlab||Homework Help||1|
|D||Matlab Program Not Executing SQRT to find primes||Programming & Languages||3|
|D||Matlab code to find all prime numbers between 2 and 5000||Programming & Languages||10|
by Robert Keim
by Robert Keim
by Gary Elinoff