-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_id.m
More file actions
32 lines (26 loc) · 959 Bytes
/
example_id.m
File metadata and controls
32 lines (26 loc) · 959 Bytes
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
function example_control
% QSN package example
%
% Show basic usage of qsn.Id.
% SPDX-FileCopyrightText: Copyright (C) 2011-2019, 2022 Frank C Langbein <frank@langbein.org>, Cardiff University
% SPDX-FileCopyrightText: Copyright (C) 2011-2019, 2022 SM Shermer <lw1660@gmail.com>, Swansea University
% SPDX-License-Identifier: AGPL-3.0-or-later
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Construct a ring network
disp('=======================================================================');
disp('Construct an XX ring network with 6 nodes');
net = qsn.QSN ('ring', ones(1,8)*1.2)
key ();
% Setup identification problem
disp('Setup identification problem');
id = qsn.Id (net, [5 15; .5 1.5], 50)
key ();
% Run identification
disp('Finding parameters...');
[H,err,D] = id.find (1, [0 40], 10, 10, 10);
key ();
function key ()
disp('Press key to continue');
pause;
end
end