Next: as far as the ('WeightingFilter' , 'inv') goes this has no field by that name in the datastructure "opts" (snaptshot attached) , so I can't set any of the fields in the opts .
I guess , you have to look at which option can be used for 'inv'
opts.SearchOption.Advanced are all numeric fields not strings.
Weighting Filter added in matlab 2017a ind i use this option for improve my result but also i dont know how can i select number of poles and zeros! what's you'r idea for select number of poles and zeros?
I attached my new code for you if its possible for you please read this link and give me some feed back.thanks alot
Dear Asghar , will go through and let you know in a day or two. For poles and zeros , you seem to have chosen : opt.InitOption.N4Weight='auto'; then for SVD to have Poles-Zeros some options needs to be looked into ...
Dear Aparna, I really do not know where is my problem, I have read MATLAB Guide, Link that I sent to you, Writing to data in the frequency domain use ' EnforceStability ' option but when i use this option result is very poor and do not match with my data, and writing' InitMethod' applicable only for estimation of continuous time transfer function using time domain data!!
I just read the tfest , you have the 9 there !!! You change it to any # , the # of poles will change accordingly Asghar. The tfest always takes (p ) # of poles and (p-1) # of zeros . That is the standard the degree of the denominator has to be > that numerator .
Ok we will try this , is the data in the time domain ?
If yes then get the transfer function by tfest(data,np) , here np is say is some arbitrary # or if you want take 9 . Prepare the data in the format it (tfest) wants .
Next , use all the options and other stuff get the new transfer function and check . The raw vs simulated with options.
forget about InitMethod it is not of much use to us.