Error using merge function with different greybox estimations

1 view (last 30 days)
I am getting an error when using the merge function with two different estimated greybox models with different data, but with the same structure (function). The error is as following,
_Error using idParametric/merge (line 44)
Inner matrix dimensions must agree._
The code is quite simple. I will paste the most important parts,
opt = greyestOptions('DisturbanceModel','Estimate')
sys = idgrey('myfunc_greybox',var,'c',aux,0)
data = iddata(yout(:,1:2),yout(:,3),0.002)
m1 = greyest(data,sys,opt)
I use it twice and then combine the 'm' variable:
merge(m1,m2)
Myfunc_greybox() is a function in which I declare the space state structure I'm working in. I don't know if it's relevant.
Thank you in advance. Best regards.
PS: I've tried with merge with ssest, iddss with parameters restrictions and it worked fine. But I'm interested in the parameters that greybox could estimate, as well as the variances combination.
  2 Comments
M Lut
M Lut on 20 Mar 2023
It is now 2023, the toolbox is now an app but internally nothing has been done to get rid of the bugs apparently. I can confirm that it doesn't work for greyest() results.
If you like to fight the interface while consulting partially erroneous documentation and deal with issues like this, get the system identification app / toolbox. Otherwise I would advise to keep a safe distance.
Rajiv Singh
Rajiv Singh on 2 Jul 2023
Sorry I missed seeing this earlier. Could you please elaborate on the contents of "myfunc_greybox" and also how you are generating the two systems m1 and m2? For example, do you use different values for the auxiliary parameter "aux" when creating them?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!