I have a two-column matrix of data obtained from NI-DAQ. The first column is the output data of a motor-generator set (with driver) and the second column is the input data (square wave). I want to find the transfer function using tfest
without Simulink. Is it possible? I have System Identification Toolbox.
How can I attach a .mat file to this post? My data on gist https://gist.github.com/anonymous/6484844
You already got the right idea, I don't know where you got stucked. Here is the code which solves your problem, I tested it, its works fine. Be aware that a simpler input probably gets you better results, that means for example a single step instead of a square wave.
Edit: the output for number of poles np=5:
Edit#2: in your previous question you were asking whether it would be better to use
idfrd
oriddata
- but do you actually have the frequency response data? I actually don't think it should make a big difference, if you choose the number of poles high enough. Just try out what it's working better for you. The workaround is the same.