daredare.misc.matlab

Package daredare :: Package misc :: Module matlab |
[hide private]
[frames] | no frames]

# Source Code for Module daredare.misc.matlab

     1  from mlabwrap import mlab
     2
     3 -def retrieve_results(mlab):
     4      d_M = dict()
     5      d_oo = dict()
     6      d_options = dict()
     7
     8
     9      m_options = mlab._get('options_')
    10      m_names = mlab.fieldnames(m_options)
    11      for m_name in m_names:
    12          #print(m_name)
    13          name = str(mlab.cell2mat(m_name))
    14          print(name)
    15          #name = m_name._[0]
    16          #print(name)
    17          #d_options[name] = getattr(m_options,name)#m_options.__getattr__(m_name)
    18
    19      return(d_options)
    20