<?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.5.6">
  <compounddef id="itsave_8m" kind="file">
    <compoundname>itsave.m</compoundname>
      <sectiondef kind="var">
      <memberdef kind="variable" id="itsave_8m_1680e0ce70cda1a60557184bef5a6168e" prot="public" static="no" mutable="no">
        <type>File</type>
        <definition>File __pad1__</definition>
        <argsstring></argsstring>
        <name>__pad1__</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="5" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="5" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_14a7fd756291457a2f23abdb704288459" prot="public" static="no" mutable="no">
        <type>File</type>
        <definition>File var1</definition>
        <argsstring></argsstring>
        <name>var1</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="5" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="5" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1f2e4dfefec07c708c5ac8574c56da537" prot="public" static="no" mutable="no">
        <type>you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software</type>
        <definition>if write to the Free Software Foundation</definition>
        <argsstring></argsstring>
        <name>Foundation</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="21" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="21" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1355539e51bed3008068dfe985e226ab8" prot="public" static="no" mutable="no">
        <type>either version of the</type>
        <definition>either version of the License</definition>
        <argsstring></argsstring>
        <name>License</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="21" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="21" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_101d4ec73d916d67d085f3e63d1fdbd4b" prot="public" static="no" mutable="no">
        <type>either version of the but WITHOUT ANY</type>
        <definition>either version of the but WITHOUT ANY WARRANTY</definition>
        <argsstring></argsstring>
        <name>WARRANTY</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="25" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="25" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1d1fcf7d480c2fceaa3fc2635af62b648" prot="public" static="no" mutable="no">
        <type>without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details You should have received a copy of the GNU General Public License along with this</type>
        <definition>without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details You should have received a copy of the GNU General Public License along with this program</definition>
        <argsstring></argsstring>
        <name>program</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="30" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1e6cf43db481de26465fb7c527d5d985f" prot="public" static="no" mutable="no">
        <type>if</type>
        <definition>if not</definition>
        <argsstring></argsstring>
        <name>not</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="30" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1905b4a7c11572b0a44b1a053ce673c5d" prot="public" static="no" mutable="no">
        <type>if write to the Free Software</type>
        <definition>if write to the Free Software Inc</definition>
        <argsstring></argsstring>
        <name>Inc</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="31" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1fe1a6e4154d81acb571f8aab6721aea4" prot="public" static="no" mutable="no">
        <type>if write to the Free Software Franklin</type>
        <definition>if write to the Free Software Franklin St</definition>
        <argsstring></argsstring>
        <name>St</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="31" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1d2b5073b95842f7a6ed83d3aeec19bbe" prot="public" static="no" mutable="no">
        <type>if write to the Free Software Franklin Fifth</type>
        <definition>if write to the Free Software Franklin Fifth Floor</definition>
        <argsstring></argsstring>
        <name>Floor</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="31" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_18325b5643fb5a8089993e30526606acc" prot="public" static="no" mutable="no">
        <type>if write to the Free Software Franklin Fifth</type>
        <definition>if write to the Free Software Franklin Fifth Boston</definition>
        <argsstring></argsstring>
        <name>Boston</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="31" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="30" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1545f2213e9a5115b1b8530c3f8cf85d9" prot="public" static="no" mutable="no">
        <type>end</type>
        <definition>end nargs</definition>
        <argsstring></argsstring>
        <name>nargs</name>
        <initializer> size(vars,2)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="44" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="44" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_183583892f1d8254cfda94a12cd780c0d" prot="public" static="no" mutable="no">
        <type>for</type>
        <definition>for ai</definition>
        <argsstring></argsstring>
        <name>ai</name>
        <initializer>1:nargs
  if (exist(&apos;OCTAVE_VERSION&apos;)) % check for octave
      vname = deblank(argn(ai+1,:))</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="60" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="58" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1e9a9383c1afbb6bbb2051c542d82156b" prot="public" static="no" mutable="no">
        <type>octave way of getting parameter name</type>
        <definition>matlab way of getting parameter name is_octave</definition>
        <argsstring></argsstring>
        <name>is_octave</name>
        <initializer>1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="61" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="61" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_14e1a421d8af350ce1f106adb3aecae87" prot="public" static="no" mutable="no">
        <type>used by function itsizeof to identify octave else</type>
        <definition>used by function itsizeof to identify octave else vname</definition>
        <argsstring></argsstring>
        <name>vname</name>
        <initializer> inputname(ai+1)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="63" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="63" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1bdc0dbb7c91d13ef90e78dc0c1b8b693" prot="public" static="no" mutable="no">
        <type>used by function itsizeof to identify matlab end</type>
        <definition>used by function itsizeof to identify matlab end v</definition>
        <argsstring></argsstring>
        <name>v</name>
        <initializer> vars{ai}</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="66" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="66" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_12179a3890d2c6800564e009e1b729ad2" prot="public" static="no" mutable="no">
        <type></type>
        <definition>is_scalar</definition>
        <argsstring></argsstring>
        <name>is_scalar</name>
        <initializer> all(size(v) == 1)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="68" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="68" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1da70dbb0a8dd4ae0dfdf22e7a1c59fc5" prot="public" static="no" mutable="no">
        <type></type>
        <definition>data_bytes</definition>
        <argsstring></argsstring>
        <name>data_bytes</name>
        <initializer> itsizeof(uint64(0),is_octave) + itsizeof(char(0),is_octave) * prod(size(v))</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="78" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="78" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1a881823d403873173d08f8a4f602eab3" prot="public" static="no" mutable="no">
        <type>else a matrix</type>
        <definition>else a matrix hdr_bytes</definition>
        <argsstring></argsstring>
        <name>hdr_bytes</name>
        <initializer> 3 * itsizeof(uint64(0),is_octave) + size(vname,2)+1 ...
	    + itsizeof(&apos;bmat&apos;,is_octave)+1 +1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="81" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="80" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_18d5491d4519ca139c65068a3215c2f8e" prot="public" static="no" mutable="no">
        <type>end</type>
        <definition>end block_bytes</definition>
        <argsstring></argsstring>
        <name>block_bytes</name>
        <initializer> hdr_bytes + data_bytes</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="84" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="84" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_12cc9ac9e94cfef4cc424d9133995a71c" prot="public" static="no" mutable="no">
        <type>Write data type</type>
        <definition>end else a matrix Write data type string</definition>
        <argsstring></argsstring>
        <name>string</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="91" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="91" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1227cfb8ad17fc637bb6a27a88f08b4bf" prot="public" static="no" mutable="no">
        <type>Write data type empty description string and data size</type>
        <definition>Write data type empty description string and data size bvec</definition>
        <argsstring></argsstring>
        <name>bvec</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="93" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="93" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_105283d6bf805b4664deeec1d79f376d4" prot="public" static="no" mutable="no">
        <type>Write data type empty description string and data size</type>
        <definition>Write data type empty description string and data size ivec</definition>
        <argsstring></argsstring>
        <name>ivec</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="122" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="122" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_166615ffdd5b08a31b7f5b92df6d3bcdd" prot="public" static="no" mutable="no">
        <type></type>
        <definition>dvec</definition>
        <argsstring></argsstring>
        <name>dvec</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="153" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="153" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_19b932e10d196780312f615d3c2b408f2" prot="public" static="no" mutable="no">
        <type>Write data for</type>
        <definition>Write data for i</definition>
        <argsstring></argsstring>
        <name>i</name>
        <initializer>1:size(v(:),1)
	  fwrite(fid, real(v(i)), &apos;float64&apos;)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="187" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="186" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_14219087f2d987a0fb99ff3b63601b076" prot="public" static="no" mutable="no">
        <type>Write data for</type>
        <definition>Write data for j</definition>
        <argsstring></argsstring>
        <name>j</name>
        <initializer>1:size(v,2)
	  for i=1:size(v,1)
	    fwrite(fid, real(v(i,j)), &apos;float64&apos;)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="197" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="195" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1e0d1a96bdaefe1ebe985f6536223de7b" prot="public" static="no" mutable="no">
        <type></type>
        <definition>else nbytes</definition>
        <argsstring></argsstring>
        <name>nbytes</name>
        <initializer>tmp.bytes</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="217" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="217" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="itsave_8m_1fb358f48b1646c750fb9da6c6585be2b" prot="public" static="no" mutable="no">
        <type></type>
        <definition>end</definition>
        <argsstring></argsstring>
        <name>end</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="223" bodyfile="/home/smidl/work/git/mixpp/matlab/itsave.m" bodystart="223" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="itsave_8m_19578960e5d7ee914d0d6838b76a7473e" prot="public" static="yes" const="no" explicit="no" inline="no" virt="virtual">
        <type>id</type>
        <definition>id types:</definition>
        <argsstring>(see AUTHORS file for a list of contributors software)</argsstring>
        <name>types:</name>
        <param>
          <type>see AUTHORS file for a list of contributors</type>
          <declname>software</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="19"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_158781a13256e170574b13bb2170e928e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>either version of the</type>
        <definition>either version of the or</definition>
        <argsstring>(at your option) any later version.%%This program is distributed in the hope that it will be useful</argsstring>
        <name>or</name>
        <param>
          <type>at your</type>
          <declname>option</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="24"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_14727c1a57822674adfe9ca2bba3ec03c" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
        <type>nargin &gt; 1</type>
        <definition>nargin &gt; 1 varargin</definition>
        <argsstring>()</argsstring>
        <name>varargin</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="39"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1c50dd0c6c3b0c631691ab989849ad18e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>else</type>
        <definition>else error</definition>
        <argsstring>(&apos;Usage:itsave(&quot;fname.it&quot;, var1,[var2],...)&apos;)</argsstring>
        <name>error</name>
        <param>
          <type>&apos;Usage:itsave(&quot;fname.it&quot;, var1,[var2],...)&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="41"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1ef94a0620ccad5238d95602e19b26b8d" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
        <type>id</type>
        <definition>id file_version</definition>
        <argsstring>()</argsstring>
        <name>file_version</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="47"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1a4dd54430d7ccdd48ab38f8f15ae4d87" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>if</definition>
        <argsstring>(fid==-1) error(err_msg)</argsstring>
        <name>if</name>
        <param>
          <type>fid</type>
          <defval>=-1</defval>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="51"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_14e05a750514fcad920a55235ecf5b04d" prot="public" static="yes" const="no" explicit="no" inline="no" virt="virtual">
        <type>fid, &apos;IT++%c&apos;, file_version</type>
        <definition>fid, &apos;IT++%c&apos;, file_version fprintf</definition>
        <argsstring>()</argsstring>
        <name>fprintf</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="56"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1f43d15bf3aafca3e489119a7b034aedb" prot="public" static="no" const="no" explicit="no" inline="no" virt="pure-virtual">
        <type>true if</type>
        <definition>true if scalar</definition>
        <argsstring>(for future use) is_vector=0</argsstring>
        <name>scalar</name>
        <param>
          <type>for future</type>
          <declname>use</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="69"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1422effd4a51a50bded0e821258987507" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>sum</definition>
        <argsstring>(size(v) &gt; 1)&lt;</argsstring>
        <name>sum</name>
        <param>
          <type>size(v)</type>
        </param>
        <param>
          <type>1</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="69"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_13b6bab51c028a3d444b2dd5ef8c74e53" prot="public" static="no" const="no" explicit="no" inline="no" virt="pure-virtual">
        <type>true if a</type>
        <definition>true if a vector</definition>
        <argsstring>(or a scalar) is_intbin=0</argsstring>
        <name>vector</name>
        <param>
          <type>or a</type>
          <declname>scalar</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="70"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_10f8e4f8a2e3d98ab7261a47ac85f679b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>min</definition>
        <argsstring>(min(v==round(v)))</argsstring>
        <name>min</name>
        <param>
          <type>min(v==round(v))</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="70"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_126546e5ed84229ef79dbfe76d7afeba1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>true if integer or binary</type>
        <definition>true if integer or binary if</definition>
        <argsstring>(isreal(v)&amp;&amp;is_intbin)%binary or integer type if(max(max(v))</argsstring>
        <name>if</name>
        <param>
          <type>isreal(v)&amp;&amp;</type>
          <declname>is_intbin</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="77"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_16aa15e35d1e69ce194c628ae9c9d6247" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>Write header sizes</type>
        <definition>Writes header sizes fwrite</definition>
        <argsstring>(fid,[hdr_bytes data_bytes block_bytes], &apos;uint64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;uint64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="87"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1732b8a3c86e86597430033b6edcbf499" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>Write variable name as string</type>
        <definition>Writes variable name as string fprintf</definition>
        <argsstring>(fid, &apos;%s%c&apos;, vname)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;%s%c&apos;</type>
        </param>
        <param>
          <type>vname</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="89"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1cd41dd5eb86728e576c8a175e64ebca8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fwrite</definition>
        <argsstring>(fid, 0, &apos;char&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>0</type>
        </param>
        <param>
          <type> &apos;char&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="89"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1dfa2e8596da4e4a69ec2065753d14472" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>Write data type empty description string and data size</type>
        <definition>Write data type empty description string and data size if</definition>
        <argsstring>(is_vector) fprintf(fid</argsstring>
        <name>if</name>
        <param>
          <type>is_vector</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="93"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1b6a6ee8950cb64598402f751662b859e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fwrite</definition>
        <argsstring>(fid, size(v(:), 1), &apos;uint64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>size(v(:), 1)</type>
        </param>
        <param>
          <type> &apos;uint64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="94"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_146c5f7ee68bad5c8c359eb7121e03fae" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>else a matrix</type>
        <definition>else a matrix fprintf</definition>
        <argsstring>(fid, &apos;bmat&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;bmat&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="96"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_16885b839cf39dcbf08719e94d6f316bf" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fwrite</definition>
        <argsstring>(fid, size(v), &apos;uint64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>size(v)</type>
        </param>
        <param>
          <type> &apos;uint64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="97"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_14905b974332f2fd7b8768572b082d46a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end Write data</type>
        <definition>end Write data fwrite</definition>
        <argsstring>(fid, v, &apos;char&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>v</type>
        </param>
        <param>
          <type> &apos;char&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="100"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_13dfbe214dbcab8a4dafdd7d2f9734c0b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>else a matrix</type>
        <definition>else a matrix fprintf</definition>
        <argsstring>(fid, &apos;imat&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;imat&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="125"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_14c33543a52869d864d777dfdb5388f87" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end Write data</type>
        <definition>end Write data fwrite</definition>
        <argsstring>(fid, v, &apos;int32&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>v</type>
        </param>
        <param>
          <type> &apos;int32&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="129"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_15c9ee41a9de83d628104472c1f02323f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end binary or integer</type>
        <definition>end binary or integer elseif</definition>
        <argsstring>(isa(v, &apos;double&apos;))%double precision floating point type if(isreal(v))%Check if real values%Calculate sizes if(is_vector) hdr_bytes</argsstring>
        <name>elseif</name>
        <param>
          <type>isa(v, &apos;double&apos;)</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="137"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1a39e1c50f6d00aacc15b1fd3a08e35e8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>else a matrix</type>
        <definition>else a matrix fprintf</definition>
        <argsstring>(fid, &apos;dmat&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;dmat&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="156"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1e80f8f39da4aed9c91b1a240a577b17f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end</type>
        <definition>end fwrite</definition>
        <argsstring>(fid, v, &apos;float64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>v</type>
        </param>
        <param>
          <type> &apos;float64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="159"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1416044e0e110c71042f7be9014fa78e2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>Write variable name as string</type>
        <definition>Write variable name as string fprintf</definition>
        <argsstring>(fid, &apos;%s&apos;, vname)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;%s&apos;</type>
        </param>
        <param>
          <type>vname</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="179"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_111c7347808facfc8824a564233bf4fb6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>empty description string and data size</type>
        <definition>empty description string and data size fprintf</definition>
        <argsstring>(fid, &apos;dcvec&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;dcvec&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="183"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_13b8ba2049bd9b12e02c93fb8d2e6b3b7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fwrite</definition>
        <argsstring>(fid, imag(v(i)), &apos;float64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>imag(v(i))</type>
        </param>
        <param>
          <type> &apos;float64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="188"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1a3492374b3fc5a5ea3d14e9265eda2be" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end else a matrix Write data type empty description string and data size</type>
        <definition>end else a matrix Write data type empty description string and data size fprintf</definition>
        <argsstring>(fid, &apos;dcmat&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type> &apos;dcmat&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="192"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1c5f506d26a8fc8279d12e16697fcb0e1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fwrite</definition>
        <argsstring>(fid, imag(v(i, j)), &apos;float64&apos;)</argsstring>
        <name>fwrite</name>
        <param>
          <type>fid</type>
        </param>
        <param>
          <type>imag(v(i, j))</type>
        </param>
        <param>
          <type> &apos;float64&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="198"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1c7c4c2538297c5074ec6924682557698" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end end end end real or complex else</type>
        <definition>end end end end real or complex else warning</definition>
        <argsstring>([&apos;Variable &apos;&apos;&apos;vname &apos;&apos;&apos;is neither a vector nor matrix.Not saved.&apos;])</argsstring>
        <name>warning</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="204"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_1c1c641b9fd0cf5478fbffe3739e6d689" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end end</type>
        <definition>end end fclose</definition>
        <argsstring>(fid)</argsstring>
        <name>fclose</name>
        <param>
          <type>fid</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="209"/>
      </memberdef>
      <memberdef kind="function" id="itsave_8m_18626954d4efdb13284810539d1c72971" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>sizeof</type>
        <definition>sizeof function</definition>
        <argsstring>(like C-style sizeof)%returns no.bytes used by a variable function nbytes</argsstring>
        <name>function</name>
        <param>
          <type>like C-style</type>
          <declname>sizeof</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/itsave.m" line="216"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="normal">%<sp/>File:<sp/><sp/><sp/>itsave.m</highlight></codeline>
<codeline lineno="2"><highlight class="normal">%<sp/>Brief:<sp/><sp/>Saves<sp/>Matlab/Octave<sp/>workspace<sp/>variables<sp/>to<sp/>an<sp/>IT++<sp/>itfile</highlight></codeline>
<codeline lineno="3"><highlight class="normal">%<sp/>Author:<sp/>Tony<sp/>Ottosson<sp/>and<sp/>Adam<sp/>Piatyszek</highlight></codeline>
<codeline lineno="4"><highlight class="normal">%</highlight></codeline>
<codeline lineno="5"><highlight class="normal">%<sp/>Usage:<sp/>itsave(&quot;fname.it&quot;,<sp/>var1,<sp/>[var2],<sp/>...)</highlight></codeline>
<codeline lineno="6"><highlight class="normal">%</highlight></codeline>
<codeline lineno="7"><highlight class="normal">%<sp/>This<sp/>function<sp/>saves<sp/>a<sp/>set<sp/>of<sp/>Matlab/Octave<sp/>workspace<sp/>variables<sp/>to<sp/>an<sp/>IT++</highlight></codeline>
<codeline lineno="8"><highlight class="normal">%<sp/>file<sp/>format.<sp/>Currently,<sp/>only<sp/>vectors<sp/>and<sp/>2-D<sp/>matrices<sp/>can<sp/>be<sp/>saved.<sp/>The</highlight></codeline>
<codeline lineno="9"><highlight class="normal">%<sp/>type<sp/>of<sp/>data<sp/>saved<sp/>is<sp/>detected<sp/>automatically<sp/>and<sp/>can<sp/>be<sp/>one<sp/>of<sp/>the</highlight></codeline>
<codeline lineno="10"><highlight class="normal">%<sp/>following<sp/>types:<sp/>bvec,<sp/>bmat,<sp/>ivec,<sp/>imat,<sp/>vec,<sp/>mat,<sp/>cvec,<sp/>cmat.</highlight></codeline>
<codeline lineno="11"><highlight class="normal">%</highlight></codeline>
<codeline lineno="12"><highlight class="normal">%<sp/>-------------------------------------------------------------------------</highlight></codeline>
<codeline lineno="13"><highlight class="normal">%</highlight></codeline>
<codeline lineno="14"><highlight class="normal">%<sp/>IT++<sp/>-<sp/>C++<sp/>library<sp/>of<sp/>mathematical,<sp/>signal<sp/>processing,<sp/>speech<sp/>processing,</highlight></codeline>
<codeline lineno="15"><highlight class="normal">%<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>and<sp/>communications<sp/>classes<sp/>and<sp/>functions</highlight></codeline>
<codeline lineno="16"><highlight class="normal">%</highlight></codeline>
<codeline lineno="17"><highlight class="normal">%<sp/>Copyright<sp/>(C)<sp/>1995-2007<sp/><sp/>(see<sp/>AUTHORS<sp/>file<sp/>for<sp/>a<sp/>list<sp/>of<sp/>contributors)</highlight></codeline>
<codeline lineno="18"><highlight class="normal">%</highlight></codeline>
<codeline lineno="19"><highlight class="normal">%<sp/>This<sp/>program<sp/>is<sp/>free<sp/>software;<sp/>you<sp/>can<sp/>redistribute<sp/>it<sp/>and/or<sp/>modify</highlight></codeline>
<codeline lineno="20"><highlight class="normal">%<sp/>it<sp/>under<sp/>the<sp/>terms<sp/>of<sp/>the<sp/>GNU<sp/>General<sp/>Public<sp/>License<sp/>as<sp/>published<sp/>by</highlight></codeline>
<codeline lineno="21"><highlight class="normal">%<sp/>the<sp/>Free<sp/>Software<sp/>Foundation;<sp/>either<sp/>version<sp/>2<sp/>of<sp/>the<sp/>License,<sp/>or</highlight></codeline>
<codeline lineno="22"><highlight class="normal">%<sp/>(at<sp/>your<sp/>option)<sp/>any<sp/>later<sp/>version.</highlight></codeline>
<codeline lineno="23"><highlight class="normal">%</highlight></codeline>
<codeline lineno="24"><highlight class="normal">%<sp/>This<sp/>program<sp/>is<sp/>distributed<sp/>in<sp/>the<sp/>hope<sp/>that<sp/>it<sp/>will<sp/>be<sp/>useful,</highlight></codeline>
<codeline lineno="25"><highlight class="normal">%<sp/>but<sp/>WITHOUT<sp/>ANY<sp/>WARRANTY;<sp/>without<sp/>even<sp/>the<sp/>implied<sp/>warranty<sp/>of</highlight></codeline>
<codeline lineno="26"><highlight class="normal">%<sp/>MERCHANTABILITY<sp/>or<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/><sp/>See<sp/>the</highlight></codeline>
<codeline lineno="27"><highlight class="normal">%<sp/>GNU<sp/>General<sp/>Public<sp/>License<sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>more<sp/>details.</highlight></codeline>
<codeline lineno="28"><highlight class="normal">%</highlight></codeline>
<codeline lineno="29"><highlight class="normal">%<sp/>You<sp/>should<sp/>have<sp/>received<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>GNU<sp/>General<sp/>Public<sp/>License</highlight></codeline>
<codeline lineno="30"><highlight class="normal">%<sp/>along<sp/>with<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal"><sp/>program;<sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>not,<sp/>write<sp/>to<sp/>the<sp/>Free<sp/>Software</highlight></codeline>
<codeline lineno="31"><highlight class="normal">%<sp/>Foundation,<sp/>Inc.,<sp/>51<sp/>Franklin<sp/>St,<sp/>Fifth<sp/>Floor,<sp/>Boston,<sp/>MA<sp/>02110-1301<sp/>USA</highlight></codeline>
<codeline lineno="32"><highlight class="normal">%</highlight></codeline>
<codeline lineno="33"><highlight class="normal">%<sp/>-------------------------------------------------------------------------</highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight></codeline>
<codeline lineno="36"><highlight class="normal">function<sp/>itsave(fname,<sp/>varargin)</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(nargin<sp/>&gt;<sp/>1)</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/>vars<sp/>=<sp/>varargin;</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"><sp/><sp/>error(</highlight><highlight class="stringliteral">&apos;Usage:<sp/>itsave(&quot;fname.it&quot;,<sp/>var1,<sp/>[var2],<sp/>...)&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="42"><highlight class="normal">end</highlight></codeline>
<codeline lineno="43"><highlight class="normal"></highlight></codeline>
<codeline lineno="44"><highlight class="normal">nargs<sp/>=<sp/>size(vars,2);</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal">%<sp/>The<sp/>current<sp/>file-version<sp/>of<sp/>it_file</highlight></codeline>
<codeline lineno="47"><highlight class="normal">file_version<sp/>=<sp/>3;</highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
<codeline lineno="49"><highlight class="normal">[fid,<sp/>err_msg]<sp/>=<sp/>fopen(fname,<sp/></highlight><highlight class="stringliteral">&apos;wb&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;ieee-le&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="50"><highlight class="normal"></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fid<sp/>==<sp/>-1)</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/>error(err_msg);</highlight></codeline>
<codeline lineno="52"><highlight class="normal">end</highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54"><highlight class="normal">%<sp/>Write<sp/>a<sp/>file<sp/>header<sp/>consisting<sp/>of<sp/></highlight><highlight class="stringliteral">&quot;IT++&quot;</highlight><highlight class="normal"><sp/>and<sp/>a<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>containing<sp/>the<sp/>file</highlight></codeline>
<codeline lineno="55"><highlight class="normal">%<sp/>version<sp/>number</highlight></codeline>
<codeline lineno="56"><highlight class="normal">fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;IT++%c&apos;</highlight><highlight class="normal">,<sp/>file_version);</highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>ai=1:nargs</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(exist(</highlight><highlight class="stringliteral">&apos;OCTAVE_VERSION&apos;</highlight><highlight class="normal">))<sp/>%<sp/>check<sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>octave</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>vname<sp/>=<sp/>deblank(argn(ai+1,:));<sp/>%<sp/>octave<sp/>way<sp/>of<sp/>getting<sp/>parameter<sp/>name</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>is_octave=1;<sp/>%used<sp/>by<sp/>function<sp/>itsizeof<sp/>to<sp/>identify<sp/>octave</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>vname<sp/>=<sp/>inputname(ai+1);<sp/>%<sp/>matlab<sp/>way<sp/>of<sp/>getting<sp/>parameter<sp/>name</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>is_octave=0;<sp/>%used<sp/>by<sp/>function<sp/>itsizeof<sp/>to<sp/>identify<sp/>matlab</highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/>end</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/>v<sp/>=<sp/>vars{ai};</highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/>is_scalar<sp/>=<sp/>all(size(v)<sp/>==<sp/>1);<sp/>%<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>scalar<sp/>(</highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>future<sp/>use)</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/>is_vector<sp/>=<sp/>0;%(sum(size(v)<sp/>&gt;<sp/>1)<sp/>&lt;=<sp/>1);<sp/>%<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>a<sp/>vector<sp/>(or<sp/>a<sp/>scalar)</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/>is_intbin<sp/>=<sp/>0;%min(min(v<sp/>==<sp/>round(v)));<sp/>%<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>integer<sp/>or<sp/>binary</highlight></codeline>
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<sp/>isreal(v)<sp/>&amp;&amp;<sp/>is_intbin<sp/>)<sp/>%<sp/>binary<sp/>or<sp/>integer<sp/>type</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(max(max(v))<sp/>==<sp/>1<sp/>&amp;&amp;<sp/>min(min(v))<sp/>==<sp/>0)<sp/>%<sp/>binary<sp/>type</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Calculate<sp/>sizes</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;bvec&apos;,is_octave)+1<sp/>+1;</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(char(0),is_octave)<sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;bmat&apos;,is_octave)+1<sp/>+1;</highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>2<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(char(0),is_octave)<sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>block_bytes<sp/>=<sp/>hdr_bytes<sp/>+<sp/>data_bytes;</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>header<sp/>sizes</highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>[hdr_bytes<sp/>data_bytes<sp/>block_bytes],<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>variable<sp/>name<sp/>as<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;%s%c&apos;</highlight><highlight class="normal">,<sp/>vname);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="90"><highlight class="normal"></highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data<sp/>type<sp/>string,<sp/>empty<sp/>description<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>and<sp/>data<sp/>size</highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;bvec&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v(:),1),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;bmat&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data</highlight></codeline>
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>v,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="101"><highlight class="normal"></highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>integer<sp/>type</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Calculate<sp/>sizes</highlight></codeline>
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;ivec&apos;,is_octave)+1<sp/>+1;</highlight></codeline>
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(int32(0),is_octave)<sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;imat&apos;,is_octave)+1<sp/>+1;</highlight></codeline>
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>2<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(int32(0),is_octave)<sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>block_bytes<sp/>=<sp/>hdr_bytes<sp/>+<sp/>data_bytes;</highlight></codeline>
<codeline lineno="114"><highlight class="normal"></highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>header<sp/>sizes</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>[hdr_bytes<sp/>data_bytes<sp/>block_bytes],<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>variable<sp/>name<sp/>as<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;%s%c&apos;</highlight><highlight class="normal">,<sp/>vname);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="119"><highlight class="normal"></highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data<sp/>type<sp/>string,<sp/>empty<sp/>description<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>and<sp/>data<sp/>size</highlight></codeline>
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;ivec&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v(:),1),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;imat&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data</highlight></codeline>
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>v,<sp/></highlight><highlight class="stringliteral">&apos;int32&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/>end<sp/>%<sp/>binary<sp/>or<sp/>integer</highlight></codeline>
<codeline lineno="131"><highlight class="normal"></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/>elseif<sp/>(isa(v,<sp/></highlight><highlight class="stringliteral">&apos;double&apos;</highlight><highlight class="normal">))<sp/>%<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>precision<sp/>floating<sp/>point<sp/>type</highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(isreal(v))<sp/>%<sp/>Check<sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>real<sp/>values</highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Calculate<sp/>sizes</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;dvec&apos;,is_octave)+1<sp/>+<sp/>1;</highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(double(0),is_octave)<sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;dmat&apos;,is_octave)+1<sp/>+<sp/>1;</highlight></codeline>
<codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>2<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>itsizeof(double(0),is_octave)<sp/>...</highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>block_bytes<sp/>=<sp/>hdr_bytes<sp/>+<sp/>data_bytes;</highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>a<sp/>header</highlight></codeline>
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>[hdr_bytes<sp/>data_bytes<sp/>block_bytes],<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Writes<sp/>variable<sp/>name<sp/>as<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;%s%c&apos;</highlight><highlight class="normal">,<sp/>vname);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="151"><highlight class="normal"></highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;dvec&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v(:),1),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;dmat&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>v,<sp/></highlight><highlight class="stringliteral">&apos;float64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>complex<sp/>values</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Calculate<sp/>sizes</highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;dcvec&apos;,is_octave)+1<sp/>+<sp/>1;</highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>2<sp/>*<sp/>itsizeof(double(0),is_octave)<sp/>...</highlight></codeline>
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdr_bytes<sp/>=<sp/>3<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>size(vname,2)+1<sp/>...</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>+<sp/>itsizeof(&apos;dcmat&apos;,is_octave)+1<sp/>+<sp/>1;</highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>data_bytes<sp/>=<sp/>2<sp/>*<sp/>itsizeof(uint64(0),is_octave)<sp/>+<sp/>2<sp/>*<sp/>itsizeof(double(0),is_octave)<sp/>...</highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>prod(size(v));</highlight></codeline>
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>block_bytes<sp/>=<sp/>hdr_bytes<sp/>+<sp/>data_bytes;</highlight></codeline>
<codeline lineno="175"><highlight class="normal"></highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Writes<sp/>header<sp/>sizes</highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>[hdr_bytes<sp/>data_bytes<sp/>block_bytes],<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>variable<sp/>name<sp/>as<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;%s&apos;</highlight><highlight class="normal">,<sp/>vname);<sp/><sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="180"><highlight class="normal"></highlight></codeline>
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_vector)</highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data<sp/>type<sp/>string,<sp/>empty<sp/>description<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>and<sp/>data<sp/>size</highlight></codeline>
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/></highlight><highlight class="stringliteral">&apos;dcvec&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);<sp/>fwrite(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">&apos;char&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v(:),1),<sp/></highlight><highlight class="stringliteral">&apos;uint64&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size(v(:),1)</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>real(v(i)),<sp/>&apos;float64&apos;);</highlight></codeline>
<codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>imag(v(i)),<sp/>&apos;float64&apos;);</highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>else<sp/>%<sp/>a<sp/>matrix</highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data<sp/>type<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal">,<sp/>empty<sp/>description<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>and<sp/>data<sp/>size</highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(fid,<sp/>&apos;dcmat&apos;);<sp/>fwrite(fid,<sp/>0,<sp/>&apos;</highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&apos;);<sp/>fwrite(fid,<sp/>0,<sp/>&apos;</highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&apos;);</highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>size(v),<sp/>&apos;uint64&apos;);</highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/>Write<sp/>data</highlight></codeline>
<codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>for<sp/>j=1:size(v,2)</highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>for<sp/>i=1:size(v,1)</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>real(v(i,j)),<sp/>&apos;float64&apos;);</highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fwrite(fid,<sp/>imag(v(i,j)),<sp/>&apos;float64&apos;);</highlight></codeline>
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="201"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/>end<sp/>%<sp/>real<sp/>or<sp/>complex</highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/>else</highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>warning([&apos;Variable<sp/>&apos;&apos;&apos;<sp/>vname<sp/>&apos;&apos;&apos;<sp/>is<sp/>neither<sp/>a<sp/>vector<sp/>nor<sp/>matrix.<sp/>Not<sp/>saved.&apos;]);</highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/>end</highlight></codeline>
<codeline lineno="206"><highlight class="normal"></highlight></codeline>
<codeline lineno="207"><highlight class="normal">end</highlight></codeline>
<codeline lineno="208"><highlight class="normal"></highlight></codeline>
<codeline lineno="209"><highlight class="normal">fclose(fid);</highlight></codeline>
<codeline lineno="210"><highlight class="normal"></highlight></codeline>
<codeline lineno="211"><highlight class="normal"></highlight></codeline>
<codeline lineno="212"><highlight class="normal">%<sp/>sizeof<sp/>function<sp/>(like<sp/>C-style<sp/>sizeof)</highlight></codeline>
<codeline lineno="213"><highlight class="normal">%<sp/>returns<sp/>no.<sp/>bytes<sp/>used<sp/>by<sp/>a<sp/>variable</highlight></codeline>
<codeline lineno="214"><highlight class="normal">function<sp/>nbytes=itsizeof(in,is_octave)</highlight></codeline>
<codeline lineno="215"><highlight class="normal"><sp/><sp/>if<sp/>(~is_octave)</highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp=whos(&apos;in&apos;);</highlight></codeline>
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/>nbytes=tmp.bytes;</highlight></codeline>
<codeline lineno="218"><highlight class="normal"></highlight></codeline>
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>matlab<sp/>uses<sp/>2<sp/>bytes<sp/>by<sp/>default<sp/>for<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>overwrite<sp/>using<sp/>1<sp/>byte<sp/>for<sp/>file<sp/>format</highlight></codeline>
<codeline lineno="221"><highlight class="normal"><sp/><sp/><sp/><sp/>if<sp/>(ischar(in))</highlight></codeline>
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>nbytes=size(in,2);</highlight></codeline>
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/>end;</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/>else</highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/>nbytes=sizeof(in);</highlight></codeline>
<codeline lineno="226"><highlight class="normal"><sp/><sp/>end;</highlight></codeline>
    </programlisting>
    <location file="/home/smidl/work/git/mixpp/matlab/itsave.m"/>
  </compounddef>
</doxygen>
