function [out] = error_medio_cuadratico_mcc(x) global R L km R=x(1);L=x(2);km=x(3); sim MyS2_ag_mdc_mdl; out=(mean((ia-ia1).^2));