<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.14">
  <compounddef id="matlab2python_8m" kind="file" language="Objective-C">
    <compoundname>matlab2python.m</compoundname>
      <sectiondef kind="var">
      <memberdef kind="variable" id="matlab2python_8m_1a64cdf1621baf18f6bff04726a813585c" prot="public" static="no" mutable="no">
        <type>function</type>
        <definition>else x_py</definition>
        <argsstring></argsstring>
        <name>x_py</name>
        <initializer>= matlab2python(x_ml)
  if isscalar(x_ml)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="1" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="1" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a0544c3fe466e421738dae463968b70ba" prot="public" static="no" mutable="no">
        <type></type>
        <definition>else</definition>
        <argsstring></argsstring>
        <name>else</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="26" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="26" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1afb358f48b1646c750fb9da6c6585be2b" prot="public" static="no" mutable="no">
        <type></type>
        <definition>end</definition>
        <argsstring></argsstring>
        <name>end</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="31" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="31" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a6f6ccfcf58b31cb6412107d9d5281426" prot="public" static="no" mutable="no">
        <type>for</type>
        <definition>for i</definition>
        <argsstring></argsstring>
        <name>i</name>
        <initializer>= 1:length(x_ml)
	x_ml{i} = matlab2python(x_ml{i})</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="38" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="38" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a0076b92e2b49feb6fb205639ac615012" prot="public" static="no" mutable="no">
        <type>numeric</type>
        <definition>numeric cl0</definition>
        <argsstring></argsstring>
        <name>cl0</name>
        <initializer>= class(x_ml{1})</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="48" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="48" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a7fbb037a725132736b24b49a0e79a04d" prot="public" static="no" mutable="no">
        <type></type>
        <definition>else all_match</definition>
        <argsstring></argsstring>
        <name>all_match</name>
        <initializer>= true</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="49" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="49" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a91cf6fbebedd86150a36e5ac3d5d3bfc" prot="public" static="no" mutable="no">
        <type></type>
        <definition>break</definition>
        <argsstring></argsstring>
        <name>break</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="53" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="53" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a7eef4a5b6d5bb31882df271809a8683c" prot="public" static="no" mutable="no">
        <type>else</type>
        <definition>else data_size</definition>
        <argsstring></argsstring>
        <name>data_size</name>
        <initializer>= int16(size(x_ml))</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="65" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="65" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="matlab2python_8m_1a3d246eef3d231fdd567bf51a8d16c9b3" prot="public" static="no" mutable="no">
        <type></type>
        <definition>transpose</definition>
        <argsstring></argsstring>
        <name>transpose</name>
        <initializer>= x_ml&apos;</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="66" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="66" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="matlab2python_8m_1a1bd38b892853129c7f9a6767c75dfc32" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>if</type>
        <definition>if isa</definition>
        <argsstring>(x_ml, &apos;complex&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;complex&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="3" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a9c97ea0a59b2835016b5f2e88e0f665a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif isa</definition>
        <argsstring>(x_ml, &apos;float&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;float&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="5" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1acda6dcf59383212bf887eee532d0723a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>if</type>
        <definition>if isreal</definition>
        <argsstring>(x_ml) x_py</argsstring>
        <name>isreal</name>
        <param>
          <type>x_ml</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="6" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a37285004e48f374a4c8a3898281316f3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end elseif</type>
        <definition>end elseif isa</definition>
        <argsstring>(x_ml, &apos;integer&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;integer&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="11" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a9d08a3b40b3e1c2b5e0c173e9d6c2efe" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>if isa</definition>
        <argsstring>(x_ml, &apos;string&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;string&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="13" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a84fc90486bd8c0fec8efc3375bd4db94" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif isa</definition>
        <argsstring>(x_ml, &apos;char&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;char&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="15" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a48bbd10f6bee10c18c29ad5c2eaa1d91" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif isa</definition>
        <argsstring>(x_ml, &apos;logical&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;logical&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="22" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1adaa1d03bb6b01c3c9be9bc95c2715a8c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif isa</definition>
        <argsstring>(x_ml, &apos;struct&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;struct&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="24" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1ac3fd0687259dd973d43256b88e2916fc" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(&apos;Could not convert scalar matlab type to python type&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;Could not convert scalar matlab type to python type&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="27" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1aa9d6eb680c1cf47e40f4fbc7169ef5cb" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(x_ml)</argsstring>
        <name>disp</name>
        <param>
          <type>x_ml</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="28" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1aa7f819737f428ca8df9efffe19b5dc1f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(class(x_ml))</argsstring>
        <name>disp</name>
        <param>
          <type>class(x_ml)</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="29" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1afc289095a1ff57a17dada00199318342" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif isvector</definition>
        <argsstring>(x_ml)</argsstring>
        <name>isvector</name>
        <param>
          <type>x_ml</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="32" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a5b8c3e0c7600c9ebfaf6fcc441c21d88" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>if isa</definition>
        <argsstring>(x_ml, &apos;cell&apos;)</argsstring>
        <name>isa</name>
        <param>
          <type>x_ml</type>
        </param>
        <param>
          <type>&apos;cell&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="37" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" bodystart="46" bodyend="47"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1a125cbddd2f897f1a4162f7816475862a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>elseif</type>
        <definition>elseif ismatrix</definition>
        <argsstring>(x_ml)</argsstring>
        <name>ismatrix</name>
        <param>
          <type>x_ml</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="45" column="1"/>
      </memberdef>
      <memberdef kind="function" id="matlab2python_8m_1aa55e8efea5213e9da65da3c651150296" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(&apos;Could not convert matlab type to python type&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;Could not convert matlab type to python type&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m" line="70" column="1"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="keyword">function</highlight><highlight class="normal"><sp/>x_py<sp/>=<sp/>matlab2python(x_ml)</highlight></codeline>
<codeline lineno="2"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>isscalar(x_ml);</highlight></codeline>
<codeline lineno="3"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;complex&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="4"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>x_ml;</highlight></codeline>
<codeline lineno="5"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;float&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="6"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>isreal(x_ml)</highlight></codeline>
<codeline lineno="7"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.float(x_ml);</highlight></codeline>
<codeline lineno="8"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="9"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>x_ml;</highlight></codeline>
<codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;integer&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="12"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.int(x_ml);</highlight></codeline>
<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;string&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.str(x_ml);</highlight></codeline>
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.str(x_ml);</highlight></codeline>
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.unicode(x_ml);</highlight></codeline>
<codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>x_py.encode(</highlight><highlight class="stringliteral">&apos;utf-8&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;logical&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.bool(x_ml);</highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;struct&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.dict(x_ml);</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;Could<sp/>not<sp/>convert<sp/>scalar<sp/>matlab<sp/>type<sp/>to<sp/>python<sp/>type&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>disp(x_ml);</highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="keyword">class</highlight><highlight class="normal">(x_ml));</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>x_ml;</highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="32"><highlight class="normal"><sp/><sp/>elseif<sp/>isvector(x_ml);</highlight></codeline>
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;string&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.str(x_ml);</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.str(x_ml);</highlight></codeline>
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/>elseif<sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;cell&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>1:length(x_ml)</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/>x_ml{i}<sp/>=<sp/>matlab2python(x_ml{i});</highlight></codeline>
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.list(x_ml);</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.numpy.array(x_ml);</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/>elseif<sp/>ismatrix(x_ml);</highlight></codeline>
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>isa(x_ml,<sp/></highlight><highlight class="stringliteral">&apos;cell&apos;</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>isa(x_ml{1},<sp/></highlight><highlight class="stringliteral">&apos;numeric&apos;</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/>cl0<sp/>=<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal">(x_ml{1});</highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>all_match<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>2:numel(x_ml)</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~isa(x_ml,<sp/>cl0))</highlight></codeline>
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>all_match<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/>all_match<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>all_match</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>cell2mat(x_ml).tolist();</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>matlab2python(reduce_dim(x_ml));</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>data_size<sp/>=<sp/>int16(size(x_ml));</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>transpose<sp/>=<sp/>x_ml</highlight><highlight class="stringliteral">&apos;;</highlight></codeline>
<codeline lineno="67"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>py.numpy.reshape(transpose(:)&apos;</highlight><highlight class="normal">,<sp/>data_size).tolist();</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;Could<sp/>not<sp/>convert<sp/>matlab<sp/>type<sp/>to<sp/>python<sp/>type&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/>disp(x_ml);</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="keyword">class</highlight><highlight class="normal">(x_ml));</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/>x_py<sp/>=<sp/>x_ml;</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/>end;</highlight></codeline>
<codeline lineno="75"><highlight class="normal">end</highlight></codeline>
    </programlisting>
    <location file="/root/cis_interface/cis_interface/cis_interface/interface/matlab2python.m"/>
  </compounddef>
</doxygen>
