comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirsimatrix/set.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
1 function mm = set(m,varargin)
2 % SET Set properties for the MIRsimatrix object
3 % and return the updated object
4
5 propertyArgIn = varargin;
6 graph = m.graph;
7 branch = m.branch;
8 d = mirdata(m);
9 while length(propertyArgIn) >= 2,
10 prop = propertyArgIn{1};
11 val = propertyArgIn{2};
12 propertyArgIn = propertyArgIn(3:end);
13 switch prop
14 case 'Graph'
15 graph = val;
16 case 'Branch'
17 branch = val;
18 otherwise
19 d = set(d,prop,val);
20 end
21 end
22 mm.diagwidth = m.diagwidth;
23 mm.view = m.view;
24 mm.similarity = m.similarity;
25 mm.graph = graph;
26 mm.branch = branch;
27 mm = class(mm,'mirsimatrix',d);