Emiliano Gomez

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190902
    Emiliano Gomez
    Moderator

    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

    #155228
    Emiliano Gomez
    Moderator

    Hi,
    I have prepared a small tutorial. Hope it helps you.
    tutorial

Viewing 2 posts - 1 through 2 (of 2 total)