Home › Forums › General Help (Braph 2.0) › Efficiently extracting network measures from saved .b2 file › Reply To: Efficiently extracting network measures from saved .b2 file
This question was solved with the following example of code:
*Note***
In Nabin’s case the saved b2 file was a Comparison of Structural groups.
[file, path, filterindex] = uigetfile(BRAPH2.EXT_ELEMENT, [‘Select the .b2 file.’]);
tmp = load(filename, ‘-mat’, ‘el’);
filename = fullfile(path, file);
tmp = load(filename, ‘-mat’, ‘el’);
comparison = tmp.el
% for group 1
a1 = comparison.get(‘A1’)
g1 = a1.get(‘G’)
m_dict1 = g1.get(‘m_dict’)
measure_names = m_dict1.getKeys();
measures = m_dict1.getItems();
vals = cellfun(@(x) x.get(‘M’), measures, ‘UniformOutput’, false)
Emiliano Gomez