Index: mttroot/mtt/lib/examples/Identification/idRC/idRC_ippp.m ================================================================== --- mttroot/mtt/lib/examples/Identification/idRC/idRC_ippp.m +++ mttroot/mtt/lib/examples/Identification/idRC/idRC_ippp.m @@ -8,16 +8,17 @@ x0 = sidRC_state(par); # Initial state ## Simulation of "actual" system t = [0:sim.dt:sim.last]'; T = 5; # Period -u = sin((2*pi/T)*t); -y_0 = sidRC_ssim(x0,par,sim,u,1); +## u = sin((2*pi/T)*t); +u = ones(size(t)); +y_0 = sidRC_ssim(x0,par,sim,u); ## Initial parameter par_0 = par; -par_0(sym.r) = 0.1; +par_0(sym.r) = 1; ## Identify extras.criterion = 1e-5; extras.max_iterations = 10; extras.v = 1e-5; @@ -39,8 +40,8 @@ figfig("idRC_error","pdf"); figfig("idRC_error","ps"); xlabel("Iteration") title("Estimated Parameter"); -plot(Par'); +plot(Par([sym.r,sym.c],:)'); figfig("idRC_parameters","pdf"); figfig("idRC_parameters","ps"); Index: mttroot/mtt/lib/examples/Identification/idRC/sRC_lbl.txt ================================================================== --- mttroot/mtt/lib/examples/Identification/idRC/sRC_lbl.txt +++ mttroot/mtt/lib/examples/Identification/idRC/sRC_lbl.txt @@ -1,7 +1,7 @@ %% Label file for system sRC (sRC_lbl.txt) -%SUMMARY sRC +%SUMMARY sRC Sensitivity version of RC %DESCRIPTION % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -12,30 +12,26 @@ % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Port aliases -%ALIAS in Electrical_in_1,Electrical_in_2 -%ALIAS out Electrical_out_1,Electrical_out_2 +%ALIAS in|Electrical_in Electrical_in_1,Electrical_in_2 +%ALIAS out|Electrical_out Electrical_out_1,Electrical_out_2 % Argument aliases -%ALIAS $1 c -%ALIAS $2 cs -%ALIAS $3 r -%ALIAS $4 rs %% Each line should be of one of the following forms: % a comment (ie starting with %) % component-name cr_name arg1,arg2,..argn % blank % ---- Component labels ---- % Component type SS - [Electrical_in] SS external,external + [Electrical_in] SS external,external [Electrical_out] SS external,external % Component type C - c lin effort,c;cs + c slin effort,c;cs % Component type R - r lin flow,r;rs + r slin flow,r;rs Index: mttroot/mtt/lib/examples/Identification/idRC/sidRC_numpar.txt ================================================================== --- mttroot/mtt/lib/examples/Identification/idRC/sidRC_numpar.txt +++ mttroot/mtt/lib/examples/Identification/idRC/sidRC_numpar.txt @@ -5,10 +5,10 @@ ## File sidRC_numpar.txt; ## Generated by MTT on Wed Apr 4 12:11:21 BST 2001; -c = 1.0; # Capacitance +c = 0.1; # Capacitance cs = 0.0; # Sensitivity -r = 1.0; # Resistance +r = 10.0; # Resistance rs = 0.0; # Sensitivity us = 0.0; # Sensitivity