-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparam.m
54 lines (42 loc) · 1.58 KB
/
param.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% PARAM
%
% Identifikacia prenosu prveho radu
%
% Spusta - ID_PARAM
[n,K,T,D,Tu,Tn] = ptf_strejc(u_0,u_nek,y_0,y_nek,t0,t_D,t1,t2,1);
% Aby identifikacia s nizsim radom - NIZSIEN vedela, aky je maximalny povoleny rad
n_max = n;
if(exist ('odchylka'))
clear('odchylka')
end
naspat='close,sustavy';
% Graficky priebeh
%
[K,M] = get_tf(1,n,K,T);
naspat='close,sustavy';
sim('generujpch')
figure('position',[10 60 560 420],'Tag','ptt_plot','Color','white');
Qch5=uicontrol(gcf,'Tag','ptt_ch5',...
'Style','Check','Units','Pixels','Position',[20 7 70 20],...
'ForegroundColor','Black',...
'BackgroundColor',get(gcf,'Color'),...
'String',ptg_string(5,1,ptv_str_lang),...
'Value',Qcheck_yL,...
'Callback','ptg_plot_check(ptf_checkval(''ptt_ch5''),ptf_checkval(''ptt_ch6''),{[pch(:,1),pch(:,2)],[[t1-t0;t2-t0],[0;K]],{''blue'',''red''}},[14,3,4],[4,-1],ptv_str_lang)');
Qch6=uicontrol(gcf,'Tag','ptt_ch6',...
'Style','Check','Units','Pixels','Position',[100 7 70 20],...
'ForegroundColor','Black',...
'BackgroundColor',get(gcf,'Color'),...
'String',ptg_string(5,2,ptv_str_lang),...
'Value',Qcheck_yG,...
'Callback','ptg_plot_check(ptf_checkval(''ptt_ch5''),ptf_checkval(''ptt_ch6''),{[pch(:,1),pch(:,2)],[[t1-t0;t2-t0],[0;K]],{''blue'',''red''}},[14,3,4],[4,-1],ptv_str_lang)');
ptg_plot_check(ptf_checkval('ptt_ch5'),ptf_checkval('ptt_ch6'),{[pch(:,1),pch(:,2)],[[t1-t0;t2-t0],[0;K]],{'blue','red'}},[14,3,4],[4,-1],ptv_str_lang)
% Pre moznost ladenia
%
t = pch(:,1);
yn = pch(:,2);
y_1 = yn;
% Identifikovany system je aperiodicky
%
typ_i2 = 1;
id_param