Skip to content

Commit 2137420

Browse files
committed
✨ se arma paquete
1 parent 35501d7 commit 2137420

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

identification_methods.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
%% Identifico por minimos cuadrados en forma recursiva
3737
plot_ident = true;
3838
Gzi_mc = discrete_ident_recursive_least_squares(data_ident, Ts, plot_ident)
39-
4039
%% Validacion de resultados
4140
validate_identifications(data_test, Gzi, Gzi_mc)
4241

@@ -62,6 +61,11 @@
6261
%# INPUT output_signal (double-sym) la señal de salida
6362
%# INPUT sample_time (double) tiempo de muestreo
6463
%# OUTPUT [data_ident(iddata), data_validation(iddata)]
64+
% Armo el paquete de datos
65+
N1 = floor(N/2);
66+
data = iddata(y, u, Ts);
67+
data_ident = data(1:N1);
68+
data_test = data(N1+1:N);
6569
end
6670

6771
function Gzi = discrete_ident_arx(data, Ts, focus_mode, na, nb, nk, residual_analysis)

0 commit comments

Comments
 (0)