[187] | 1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
| 2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
| 3 | <compounddef id="itload_8m" kind="file"> |
---|
| 4 | <compoundname>itload.m</compoundname> |
---|
| 5 | <sectiondef kind="var"> |
---|
| 6 | <memberdef kind="variable" id="itload_8m_1b65c7fe980b1820a993d2b7e16b8eed4" prot="public" static="no" mutable="no"> |
---|
| 7 | <type>File</type> |
---|
| 8 | <definition>File __pad0__</definition> |
---|
| 9 | <argsstring></argsstring> |
---|
| 10 | <name>__pad0__</name> |
---|
| 11 | <briefdescription> |
---|
| 12 | </briefdescription> |
---|
| 13 | <detaileddescription> |
---|
| 14 | </detaileddescription> |
---|
| 15 | <inbodydescription> |
---|
| 16 | </inbodydescription> |
---|
| 17 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="12" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="12" bodyend="-1"/> |
---|
| 18 | </memberdef> |
---|
| 19 | <memberdef kind="variable" id="itload_8m_135942df23446001bffa02ceb0df99dac" prot="public" static="no" mutable="no"> |
---|
| 20 | <type>File signal</type> |
---|
| 21 | <definition>File signal speech processing</definition> |
---|
| 22 | <argsstring></argsstring> |
---|
| 23 | <name>processing</name> |
---|
| 24 | <briefdescription> |
---|
| 25 | </briefdescription> |
---|
| 26 | <detaileddescription> |
---|
| 27 | </detaileddescription> |
---|
| 28 | <inbodydescription> |
---|
| 29 | </inbodydescription> |
---|
| 30 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="12" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="12" bodyend="-1"/> |
---|
| 31 | </memberdef> |
---|
| 32 | <memberdef kind="variable" id="itload_8m_1f2e4dfefec07c708c5ac8574c56da537" prot="public" static="no" mutable="no"> |
---|
| 33 | <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> |
---|
| 34 | <definition>if write to the Free Software Foundation</definition> |
---|
| 35 | <argsstring></argsstring> |
---|
| 36 | <name>Foundation</name> |
---|
| 37 | <briefdescription> |
---|
| 38 | </briefdescription> |
---|
| 39 | <detaileddescription> |
---|
| 40 | </detaileddescription> |
---|
| 41 | <inbodydescription> |
---|
| 42 | </inbodydescription> |
---|
| 43 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="19" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="19" bodyend="-1"/> |
---|
| 44 | </memberdef> |
---|
| 45 | <memberdef kind="variable" id="itload_8m_1355539e51bed3008068dfe985e226ab8" prot="public" static="no" mutable="no"> |
---|
| 46 | <type>either version of the</type> |
---|
| 47 | <definition>either version of the License</definition> |
---|
| 48 | <argsstring></argsstring> |
---|
| 49 | <name>License</name> |
---|
| 50 | <briefdescription> |
---|
| 51 | </briefdescription> |
---|
| 52 | <detaileddescription> |
---|
| 53 | </detaileddescription> |
---|
| 54 | <inbodydescription> |
---|
| 55 | </inbodydescription> |
---|
| 56 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="19" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="19" bodyend="-1"/> |
---|
| 57 | </memberdef> |
---|
| 58 | <memberdef kind="variable" id="itload_8m_101d4ec73d916d67d085f3e63d1fdbd4b" prot="public" static="no" mutable="no"> |
---|
| 59 | <type>either version of the but WITHOUT ANY</type> |
---|
| 60 | <definition>either version of the but WITHOUT ANY WARRANTY</definition> |
---|
| 61 | <argsstring></argsstring> |
---|
| 62 | <name>WARRANTY</name> |
---|
| 63 | <briefdescription> |
---|
| 64 | </briefdescription> |
---|
| 65 | <detaileddescription> |
---|
| 66 | </detaileddescription> |
---|
| 67 | <inbodydescription> |
---|
| 68 | </inbodydescription> |
---|
| 69 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="23" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="23" bodyend="-1"/> |
---|
| 70 | </memberdef> |
---|
| 71 | <memberdef kind="variable" id="itload_8m_1d1fcf7d480c2fceaa3fc2635af62b648" prot="public" static="no" mutable="no"> |
---|
| 72 | <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> |
---|
| 73 | <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> |
---|
| 74 | <argsstring></argsstring> |
---|
| 75 | <name>program</name> |
---|
| 76 | <briefdescription> |
---|
| 77 | </briefdescription> |
---|
| 78 | <detaileddescription> |
---|
| 79 | </detaileddescription> |
---|
| 80 | <inbodydescription> |
---|
| 81 | </inbodydescription> |
---|
| 82 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="28" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 83 | </memberdef> |
---|
| 84 | <memberdef kind="variable" id="itload_8m_1e6cf43db481de26465fb7c527d5d985f" prot="public" static="no" mutable="no"> |
---|
| 85 | <type>if</type> |
---|
| 86 | <definition>if not</definition> |
---|
| 87 | <argsstring></argsstring> |
---|
| 88 | <name>not</name> |
---|
| 89 | <briefdescription> |
---|
| 90 | </briefdescription> |
---|
| 91 | <detaileddescription> |
---|
| 92 | </detaileddescription> |
---|
| 93 | <inbodydescription> |
---|
| 94 | </inbodydescription> |
---|
| 95 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="28" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 96 | </memberdef> |
---|
| 97 | <memberdef kind="variable" id="itload_8m_1905b4a7c11572b0a44b1a053ce673c5d" prot="public" static="no" mutable="no"> |
---|
| 98 | <type>if write to the Free Software</type> |
---|
| 99 | <definition>if write to the Free Software Inc</definition> |
---|
| 100 | <argsstring></argsstring> |
---|
| 101 | <name>Inc</name> |
---|
| 102 | <briefdescription> |
---|
| 103 | </briefdescription> |
---|
| 104 | <detaileddescription> |
---|
| 105 | </detaileddescription> |
---|
| 106 | <inbodydescription> |
---|
| 107 | </inbodydescription> |
---|
| 108 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="29" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 109 | </memberdef> |
---|
| 110 | <memberdef kind="variable" id="itload_8m_1fe1a6e4154d81acb571f8aab6721aea4" prot="public" static="no" mutable="no"> |
---|
| 111 | <type>if write to the Free Software Franklin</type> |
---|
| 112 | <definition>if write to the Free Software Franklin St</definition> |
---|
| 113 | <argsstring></argsstring> |
---|
| 114 | <name>St</name> |
---|
| 115 | <briefdescription> |
---|
| 116 | </briefdescription> |
---|
| 117 | <detaileddescription> |
---|
| 118 | </detaileddescription> |
---|
| 119 | <inbodydescription> |
---|
| 120 | </inbodydescription> |
---|
| 121 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="29" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 122 | </memberdef> |
---|
| 123 | <memberdef kind="variable" id="itload_8m_1d2b5073b95842f7a6ed83d3aeec19bbe" prot="public" static="no" mutable="no"> |
---|
| 124 | <type>if write to the Free Software Franklin Fifth</type> |
---|
| 125 | <definition>if write to the Free Software Franklin Fifth Floor</definition> |
---|
| 126 | <argsstring></argsstring> |
---|
| 127 | <name>Floor</name> |
---|
| 128 | <briefdescription> |
---|
| 129 | </briefdescription> |
---|
| 130 | <detaileddescription> |
---|
| 131 | </detaileddescription> |
---|
| 132 | <inbodydescription> |
---|
| 133 | </inbodydescription> |
---|
| 134 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="29" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 135 | </memberdef> |
---|
| 136 | <memberdef kind="variable" id="itload_8m_18325b5643fb5a8089993e30526606acc" prot="public" static="no" mutable="no"> |
---|
| 137 | <type>if write to the Free Software Franklin Fifth</type> |
---|
| 138 | <definition>if write to the Free Software Franklin Fifth Boston</definition> |
---|
| 139 | <argsstring></argsstring> |
---|
| 140 | <name>Boston</name> |
---|
| 141 | <briefdescription> |
---|
| 142 | </briefdescription> |
---|
| 143 | <detaileddescription> |
---|
| 144 | </detaileddescription> |
---|
| 145 | <inbodydescription> |
---|
| 146 | </inbodydescription> |
---|
| 147 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="29" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="28" bodyend="-1"/> |
---|
| 148 | </memberdef> |
---|
| 149 | <memberdef kind="variable" id="itload_8m_1c55ae9738f28b58c98604f554f4b8b11" prot="public" static="no" mutable="no"> |
---|
| 150 | <type></type> |
---|
| 151 | <definition>file_size</definition> |
---|
| 152 | <argsstring></argsstring> |
---|
| 153 | <name>file_size</name> |
---|
| 154 | <initializer> ftell(fid)</initializer> |
---|
| 155 | <briefdescription> |
---|
| 156 | </briefdescription> |
---|
| 157 | <detaileddescription> |
---|
| 158 | </detaileddescription> |
---|
| 159 | <inbodydescription> |
---|
| 160 | </inbodydescription> |
---|
| 161 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="46" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="46" bodyend="-1"/> |
---|
| 162 | </memberdef> |
---|
| 163 | <memberdef kind="variable" id="itload_8m_118ea8b88e8b970dd85ac948679e3c8e4" prot="public" static="no" mutable="no"> |
---|
| 164 | <type>Save current file</type> |
---|
| 165 | <definition>Save current file position[d1, n]</definition> |
---|
| 166 | <argsstring>[d1, n]</argsstring> |
---|
| 167 | <name>position</name> |
---|
| 168 | <initializer> fread(fid, 3, 'uint64')</initializer> |
---|
| 169 | <briefdescription> |
---|
| 170 | </briefdescription> |
---|
| 171 | <detaileddescription> |
---|
| 172 | </detaileddescription> |
---|
| 173 | <inbodydescription> |
---|
| 174 | </inbodydescription> |
---|
| 175 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="62" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="62" bodyend="-1"/> |
---|
| 176 | </memberdef> |
---|
| 177 | <memberdef kind="variable" id="itload_8m_18935b42ba605bbeaad128ad5fa82eee7" prot="public" static="no" mutable="no"> |
---|
| 178 | <type>Read</type> |
---|
| 179 | <definition>Read header</definition> |
---|
| 180 | <argsstring></argsstring> |
---|
| 181 | <name>header</name> |
---|
| 182 | <briefdescription> |
---|
| 183 | </briefdescription> |
---|
| 184 | <detaileddescription> |
---|
| 185 | </detaileddescription> |
---|
| 186 | <inbodydescription> |
---|
| 187 | </inbodydescription> |
---|
| 188 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="62" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="62" bodyend="-1"/> |
---|
| 189 | </memberdef> |
---|
| 190 | <memberdef kind="variable" id="itload_8m_15181c9d9cdc6c152f2667bc48f10e9aa" prot="public" static="no" mutable="no"> |
---|
| 191 | <type>Read</type> |
---|
| 192 | <definition>Read data</definition> |
---|
| 193 | <argsstring></argsstring> |
---|
| 194 | <name>data</name> |
---|
| 195 | <briefdescription> |
---|
| 196 | </briefdescription> |
---|
| 197 | <detaileddescription> |
---|
| 198 | </detaileddescription> |
---|
| 199 | <inbodydescription> |
---|
| 200 | </inbodydescription> |
---|
| 201 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="62" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="62" bodyend="-1"/> |
---|
| 202 | </memberdef> |
---|
| 203 | <memberdef kind="variable" id="itload_8m_176e5b42883a6e501a61dc724cfea3415" prot="public" static="no" mutable="no"> |
---|
| 204 | <type>Read and total block sizes</type> |
---|
| 205 | <definition>Read and total block sizes name</definition> |
---|
| 206 | <argsstring></argsstring> |
---|
| 207 | <name>name</name> |
---|
| 208 | <initializer> fgetstr(fid)</initializer> |
---|
| 209 | <briefdescription> |
---|
| 210 | </briefdescription> |
---|
| 211 | <detaileddescription> |
---|
| 212 | </detaileddescription> |
---|
| 213 | <inbodydescription> |
---|
| 214 | </inbodydescription> |
---|
| 215 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="63" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="63" bodyend="-1"/> |
---|
| 216 | </memberdef> |
---|
| 217 | <memberdef kind="variable" id="itload_8m_1fc42994d4846a3cb9b8f6313ad64f8bd" prot="public" static="no" mutable="no"> |
---|
| 218 | <type>Read current variable name</type> |
---|
| 219 | <definition>Read current variable name type</definition> |
---|
| 220 | <argsstring></argsstring> |
---|
| 221 | <name>type</name> |
---|
| 222 | <initializer> fgetstr(fid)</initializer> |
---|
| 223 | <briefdescription> |
---|
| 224 | </briefdescription> |
---|
| 225 | <detaileddescription> |
---|
| 226 | </detaileddescription> |
---|
| 227 | <inbodydescription> |
---|
| 228 | </inbodydescription> |
---|
| 229 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="64" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="64" bodyend="-1"/> |
---|
| 230 | </memberdef> |
---|
| 231 | <memberdef kind="variable" id="itload_8m_1f461350a71b9a4efb2c247fe76ff15bc" prot="public" static="no" mutable="no"> |
---|
| 232 | <type>Skip header bytes</type> |
---|
| 233 | <definition>Skip header bytes bin[d, n]</definition> |
---|
| 234 | <argsstring>[d, n]</argsstring> |
---|
| 235 | <name>bin</name> |
---|
| 236 | <initializer> fread(fid, 1, 'char')</initializer> |
---|
| 237 | <briefdescription> |
---|
| 238 | </briefdescription> |
---|
| 239 | <detaileddescription> |
---|
| 240 | </detaileddescription> |
---|
| 241 | <inbodydescription> |
---|
| 242 | </inbodydescription> |
---|
| 243 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="71" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="71" bodyend="-1"/> |
---|
| 244 | </memberdef> |
---|
| 245 | <memberdef kind="variable" id="itload_8m_11aabac6d068eef6a7bad3fdf50a05cc8" prot="public" static="no" mutable="no"> |
---|
| 246 | <type></type> |
---|
| 247 | <definition>d</definition> |
---|
| 248 | <argsstring></argsstring> |
---|
| 249 | <name>d</name> |
---|
| 250 | <initializer> complex(d(1), d(2))</initializer> |
---|
| 251 | <briefdescription> |
---|
| 252 | </briefdescription> |
---|
| 253 | <detaileddescription> |
---|
| 254 | </detaileddescription> |
---|
| 255 | <inbodydescription> |
---|
| 256 | </inbodydescription> |
---|
| 257 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="96" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="96" bodyend="-1"/> |
---|
| 258 | </memberdef> |
---|
| 259 | <memberdef kind="variable" id="itload_8m_193f3b3a6fbdcff7b129cdb53f5967692" prot="public" static="no" mutable="no"> |
---|
| 260 | <type>clear</type> |
---|
| 261 | <definition>clear d2</definition> |
---|
| 262 | <argsstring></argsstring> |
---|
| 263 | <name>d2</name> |
---|
| 264 | <briefdescription> |
---|
| 265 | </briefdescription> |
---|
| 266 | <detaileddescription> |
---|
| 267 | </detaileddescription> |
---|
| 268 | <inbodydescription> |
---|
| 269 | </inbodydescription> |
---|
| 270 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="227" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="227" bodyend="-1"/> |
---|
| 271 | </memberdef> |
---|
| 272 | <memberdef kind="variable" id="itload_8m_16f6ccfcf58b31cb6412107d9d5281426" prot="public" static="no" mutable="no"> |
---|
| 273 | <type>for</type> |
---|
| 274 | <definition>for i</definition> |
---|
| 275 | <argsstring></argsstring> |
---|
| 276 | <name>i</name> |
---|
| 277 | <initializer>1:size</initializer> |
---|
| 278 | <briefdescription> |
---|
| 279 | </briefdescription> |
---|
| 280 | <detaileddescription> |
---|
| 281 | </detaileddescription> |
---|
| 282 | <inbodydescription> |
---|
| 283 | </inbodydescription> |
---|
| 284 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="228" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="228" bodyend="-1"/> |
---|
| 285 | </memberdef> |
---|
| 286 | <memberdef kind="variable" id="itload_8m_1ef19135f6cdda6c7e8db8fe4c3bc0727" prot="public" static="no" mutable="no"> |
---|
| 287 | <type>function</type> |
---|
| 288 | <definition>end str</definition> |
---|
| 289 | <argsstring></argsstring> |
---|
| 290 | <name>str</name> |
---|
| 291 | <initializer> fgetstr(fid) |
---|
| 292 | <ref refid="classstr" kindref="compound">str</ref> = ''</initializer> |
---|
| 293 | <briefdescription> |
---|
| 294 | </briefdescription> |
---|
| 295 | <detaileddescription> |
---|
| 296 | </detaileddescription> |
---|
| 297 | <inbodydescription> |
---|
| 298 | </inbodydescription> |
---|
| 299 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="354" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="353" bodyend="-1"/> |
---|
| 300 | </memberdef> |
---|
| 301 | <memberdef kind="variable" id="itload_8m_1a52645c0ee282a748dee9b026b638478" prot="public" static="no" mutable="no"> |
---|
| 302 | <type></type> |
---|
| 303 | <definition>x n</definition> |
---|
| 304 | <argsstring></argsstring> |
---|
| 305 | <name>n</name> |
---|
| 306 | <initializer> fread(fid, 1, 'char')</initializer> |
---|
| 307 | <briefdescription> |
---|
| 308 | </briefdescription> |
---|
| 309 | <detaileddescription> |
---|
| 310 | </detaileddescription> |
---|
| 311 | <inbodydescription> |
---|
| 312 | </inbodydescription> |
---|
| 313 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="356" bodyfile="/home/smidl/work/git/mixpp/matlab/itload.m" bodystart="356" bodyend="-1"/> |
---|
| 314 | </memberdef> |
---|
| 315 | </sectiondef> |
---|
| 316 | <sectiondef kind="func"> |
---|
| 317 | <memberdef kind="function" id="itload_8m_1c5b64a5297d833a71228f3d0c59b7ca2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 318 | <type>File signal speech and communications classes and functions</type> |
---|
| 319 | <definition>File signal speech and communications classes and functions Copyright</definition> |
---|
| 320 | <argsstring>(C) 1995-2007(see AUTHORS file for a list of contributors)%%This program is free software</argsstring> |
---|
| 321 | <name>Copyright</name> |
---|
| 322 | <param> |
---|
| 323 | <type>C</type> |
---|
| 324 | </param> |
---|
| 325 | <briefdescription> |
---|
| 326 | </briefdescription> |
---|
| 327 | <detaileddescription> |
---|
| 328 | </detaileddescription> |
---|
| 329 | <inbodydescription> |
---|
| 330 | </inbodydescription> |
---|
| 331 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="17"/> |
---|
| 332 | </memberdef> |
---|
| 333 | <memberdef kind="function" id="itload_8m_158781a13256e170574b13bb2170e928e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 334 | <type>either version of the</type> |
---|
| 335 | <definition>either version of the or</definition> |
---|
| 336 | <argsstring>(at your option) any later version.%%This program is distributed in the hope that it will be useful</argsstring> |
---|
| 337 | <name>or</name> |
---|
| 338 | <param> |
---|
| 339 | <type>at your</type> |
---|
| 340 | <declname>option</declname> |
---|
| 341 | </param> |
---|
| 342 | <briefdescription> |
---|
| 343 | </briefdescription> |
---|
| 344 | <detaileddescription> |
---|
| 345 | </detaileddescription> |
---|
| 346 | <inbodydescription> |
---|
| 347 | </inbodydescription> |
---|
| 348 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="22"/> |
---|
| 349 | </memberdef> |
---|
| 350 | <memberdef kind="function" id="itload_8m_1cb426ff82d56e709b269741516ed14d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual"> |
---|
| 351 | <type>fname, 'rb', 'ieee-le'</type> |
---|
| 352 | <definition>fname, 'rb', 'ieee-le' fopen</definition> |
---|
| 353 | <argsstring>()</argsstring> |
---|
| 354 | <name>fopen</name> |
---|
| 355 | <briefdescription> |
---|
| 356 | </briefdescription> |
---|
| 357 | <detaileddescription> |
---|
| 358 | </detaileddescription> |
---|
| 359 | <inbodydescription> |
---|
| 360 | </inbodydescription> |
---|
| 361 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="35"/> |
---|
| 362 | </memberdef> |
---|
| 363 | <memberdef kind="function" id="itload_8m_1e5e1e77bb97e802458981c40f0db9399" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 364 | <type></type> |
---|
| 365 | <definition>if</definition> |
---|
| 366 | <argsstring>(fid==-1) fname</argsstring> |
---|
| 367 | <name>if</name> |
---|
| 368 | <param> |
---|
| 369 | <type>fid</type> |
---|
| 370 | <defval>=-1</defval> |
---|
| 371 | </param> |
---|
| 372 | <initializer> fopen(fname, 'rb', 'ieee-le')</initializer> |
---|
| 373 | <briefdescription> |
---|
| 374 | </briefdescription> |
---|
| 375 | <detaileddescription> |
---|
| 376 | </detaileddescription> |
---|
| 377 | <inbodydescription> |
---|
| 378 | </inbodydescription> |
---|
| 379 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="37"/> |
---|
| 380 | </memberdef> |
---|
| 381 | <memberdef kind="function" id="itload_8m_1e1e9a75ad43f3288d099133a41297da5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 382 | <type>end end Check file size</type> |
---|
| 383 | <definition>end end Check file size fseek</definition> |
---|
| 384 | <argsstring>(fid, 0, 'eof')</argsstring> |
---|
| 385 | <name>fseek</name> |
---|
| 386 | <param> |
---|
| 387 | <type>fid</type> |
---|
| 388 | </param> |
---|
| 389 | <param> |
---|
| 390 | <type>0</type> |
---|
| 391 | </param> |
---|
| 392 | <param> |
---|
| 393 | <type> 'eof'</type> |
---|
| 394 | </param> |
---|
| 395 | <briefdescription> |
---|
| 396 | </briefdescription> |
---|
| 397 | <detaileddescription> |
---|
| 398 | </detaileddescription> |
---|
| 399 | <inbodydescription> |
---|
| 400 | </inbodydescription> |
---|
| 401 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="45"/> |
---|
| 402 | </memberdef> |
---|
| 403 | <memberdef kind="function" id="itload_8m_1d48212bcdc133767da68649be3fe7c8b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 404 | <type></type> |
---|
| 405 | <definition>fseek</definition> |
---|
| 406 | <argsstring>(fid, 0, 'bof')</argsstring> |
---|
| 407 | <name>fseek</name> |
---|
| 408 | <param> |
---|
| 409 | <type>fid</type> |
---|
| 410 | </param> |
---|
| 411 | <param> |
---|
| 412 | <type>0</type> |
---|
| 413 | </param> |
---|
| 414 | <param> |
---|
| 415 | <type> 'bof'</type> |
---|
| 416 | </param> |
---|
| 417 | <briefdescription> |
---|
| 418 | </briefdescription> |
---|
| 419 | <detaileddescription> |
---|
| 420 | </detaileddescription> |
---|
| 421 | <inbodydescription> |
---|
| 422 | </inbodydescription> |
---|
| 423 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="47"/> |
---|
| 424 | </memberdef> |
---|
| 425 | <memberdef kind="function" id="itload_8m_118d518cdb47ba90847873ef6170f73f1" prot="public" static="yes" const="no" explicit="no" inline="no" virt="virtual"> |
---|
| 426 | <type>fid, 5, 'char'</type> |
---|
| 427 | <definition>fid uint64 fread</definition> |
---|
| 428 | <argsstring>()</argsstring> |
---|
| 429 | <name>fread</name> |
---|
| 430 | <briefdescription> |
---|
| 431 | </briefdescription> |
---|
| 432 | <detaileddescription> |
---|
| 433 | </detaileddescription> |
---|
| 434 | <inbodydescription> |
---|
| 435 | </inbodydescription> |
---|
| 436 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="50"/> |
---|
| 437 | </memberdef> |
---|
| 438 | <memberdef kind="function" id="itload_8m_1e70270d56e6fbd234ec91f2eceb66233" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 439 | <type></type> |
---|
| 440 | <definition>if</definition> |
---|
| 441 | <argsstring>(n~=5|d(1:4)~=[73 84 43 43]') error('Not an IT++file!')</argsstring> |
---|
| 442 | <name>if</name> |
---|
| 443 | <param> |
---|
| 444 | <type>n~</type> |
---|
| 445 | <defval>5|d(1:4)~=[73 84 43 43]'</defval> |
---|
| 446 | </param> |
---|
| 447 | <briefdescription> |
---|
| 448 | </briefdescription> |
---|
| 449 | <detaileddescription> |
---|
| 450 | </detaileddescription> |
---|
| 451 | <inbodydescription> |
---|
| 452 | </inbodydescription> |
---|
| 453 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="52"/> |
---|
| 454 | </memberdef> |
---|
| 455 | <memberdef kind="function" id="itload_8m_1dd18b4acb82c2de040788031e8e275b3" prot="public" static="yes" const="no" explicit="no" inline="no" virt="virtual"> |
---|
| 456 | <type>'Only IT++file version 3 is supported by this function!'</type> |
---|
| 457 | <definition>'Only IT++ file version 3 is supported by this function!' error</definition> |
---|
| 458 | <argsstring>()</argsstring> |
---|
| 459 | <name>error</name> |
---|
| 460 | <briefdescription> |
---|
| 461 | </briefdescription> |
---|
| 462 | <detaileddescription> |
---|
| 463 | </detaileddescription> |
---|
| 464 | <inbodydescription> |
---|
| 465 | </inbodydescription> |
---|
| 466 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="57"/> |
---|
| 467 | </memberdef> |
---|
| 468 | <memberdef kind="function" id="itload_8m_129e7b1fe56629d910ade8ac16451d44b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 469 | <type>end</type> |
---|
| 470 | <definition>while</definition> |
---|
| 471 | <argsstring>(1) p</argsstring> |
---|
| 472 | <name>while</name> |
---|
| 473 | <param> |
---|
| 474 | <type>1</type> |
---|
| 475 | </param> |
---|
| 476 | <briefdescription> |
---|
| 477 | </briefdescription> |
---|
| 478 | <detaileddescription> |
---|
| 479 | </detaileddescription> |
---|
| 480 | <inbodydescription> |
---|
| 481 | </inbodydescription> |
---|
| 482 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="61"/> |
---|
| 483 | </memberdef> |
---|
| 484 | <memberdef kind="function" id="itload_8m_15c8290c3de17e9f645ea9859be033827" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 485 | <type>Read current variable type</type> |
---|
| 486 | <definition>Read current variable type fseek</definition> |
---|
| 487 | <argsstring>(fid, p+d1(1), 'bof')</argsstring> |
---|
| 488 | <name>fseek</name> |
---|
| 489 | <param> |
---|
| 490 | <type>fid</type> |
---|
| 491 | </param> |
---|
| 492 | <param> |
---|
| 493 | <type>p+</type> |
---|
| 494 | <declname>d1</declname> |
---|
| 495 | <array>1</array> |
---|
| 496 | </param> |
---|
| 497 | <param> |
---|
| 498 | <type> 'bof'</type> |
---|
| 499 | </param> |
---|
| 500 | <briefdescription> |
---|
| 501 | </briefdescription> |
---|
| 502 | <detaileddescription> |
---|
| 503 | </detaileddescription> |
---|
| 504 | <inbodydescription> |
---|
| 505 | </inbodydescription> |
---|
| 506 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="65"/> |
---|
| 507 | </memberdef> |
---|
| 508 | <memberdef kind="function" id="itload_8m_1c49320e73596e17170195df159a8ad55" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 509 | <type>Skip header bytes</type> |
---|
| 510 | <definition>Skip header bytes if</definition> |
---|
| 511 | <argsstring>(length(type)==0)%A deleted entry-> skip it%---bin---elseif(strcmp(type</argsstring> |
---|
| 512 | <name>if</name> |
---|
| 513 | <param> |
---|
| 514 | <type>length(type)</type> |
---|
| 515 | <defval>=0</defval> |
---|
| 516 | </param> |
---|
| 517 | <briefdescription> |
---|
| 518 | </briefdescription> |
---|
| 519 | <detaileddescription> |
---|
| 520 | </detaileddescription> |
---|
| 521 | <inbodydescription> |
---|
| 522 | </inbodydescription> |
---|
| 523 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="70"/> |
---|
| 524 | </memberdef> |
---|
| 525 | <memberdef kind="function" id="itload_8m_1bc7ce5ca730fcd80c45a2f8afad17962" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 526 | <type></type> |
---|
| 527 | <definition>assignin</definition> |
---|
| 528 | <argsstring>('caller', name, d)</argsstring> |
---|
| 529 | <name>assignin</name> |
---|
| 530 | <param> |
---|
| 531 | <type>'caller'</type> |
---|
| 532 | </param> |
---|
| 533 | <param> |
---|
| 534 | <type>name</type> |
---|
| 535 | </param> |
---|
| 536 | <param> |
---|
| 537 | <type>d</type> |
---|
| 538 | </param> |
---|
| 539 | <initializer> fread(fid, size, 'char')</initializer> |
---|
| 540 | <briefdescription> |
---|
| 541 | </briefdescription> |
---|
| 542 | <detaileddescription> |
---|
| 543 | </detaileddescription> |
---|
| 544 | <inbodydescription> |
---|
| 545 | </inbodydescription> |
---|
| 546 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="72"/> |
---|
| 547 | </memberdef> |
---|
| 548 | <memberdef kind="function" id="itload_8m_1759b115a50007735577056f7c549ac44" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 549 | <type>end</type> |
---|
| 550 | <definition>end assignin</definition> |
---|
| 551 | <argsstring>('caller', name, d2)</argsstring> |
---|
| 552 | <name>assignin</name> |
---|
| 553 | <param> |
---|
| 554 | <type>'caller'</type> |
---|
| 555 | </param> |
---|
| 556 | <param> |
---|
| 557 | <type>name</type> |
---|
| 558 | </param> |
---|
| 559 | <param> |
---|
| 560 | <type>d2</type> |
---|
| 561 | </param> |
---|
| 562 | <initializer> fread(fid, 1, 'uint64') fread(fid, size2, 'int16')</initializer> |
---|
| 563 | <briefdescription> |
---|
| 564 | </briefdescription> |
---|
| 565 | <detaileddescription> |
---|
| 566 | </detaileddescription> |
---|
| 567 | <inbodydescription> |
---|
| 568 | </inbodydescription> |
---|
| 569 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="233"/> |
---|
| 570 | </memberdef> |
---|
| 571 | <memberdef kind="function" id="itload_8m_1f19fa7ec08bfec6d85166aa0173466c5" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual"> |
---|
| 572 | <type>['Not supported type: 'type]</type> |
---|
| 573 | <definition>['Not supported type: ' type] warning</definition> |
---|
| 574 | <argsstring>()</argsstring> |
---|
| 575 | <name>warning</name> |
---|
| 576 | <briefdescription> |
---|
| 577 | </briefdescription> |
---|
| 578 | <detaileddescription> |
---|
| 579 | </detaileddescription> |
---|
| 580 | <inbodydescription> |
---|
| 581 | </inbodydescription> |
---|
| 582 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="338"/> |
---|
| 583 | </memberdef> |
---|
| 584 | <memberdef kind="function" id="itload_8m_174d4d8e4fddc8aec384b3e35aed9dce0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 585 | <type>end</type> |
---|
| 586 | <definition>end if</definition> |
---|
| 587 | <argsstring>(p+d1(3) >=file_size) break</argsstring> |
---|
| 588 | <name>if</name> |
---|
| 589 | <param> |
---|
| 590 | <type>p+d1(3) >=</type> |
---|
| 591 | <declname>file_size</declname> |
---|
| 592 | </param> |
---|
| 593 | <briefdescription> |
---|
| 594 | </briefdescription> |
---|
| 595 | <detaileddescription> |
---|
| 596 | </detaileddescription> |
---|
| 597 | <inbodydescription> |
---|
| 598 | </inbodydescription> |
---|
| 599 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="342"/> |
---|
| 600 | </memberdef> |
---|
| 601 | <memberdef kind="function" id="itload_8m_15e502ea76bac357133e8685b8aa3e0dd" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 602 | <type>else</type> |
---|
| 603 | <definition>else fseek</definition> |
---|
| 604 | <argsstring>(fid, p+d1(3), 'bof')</argsstring> |
---|
| 605 | <name>fseek</name> |
---|
| 606 | <param> |
---|
| 607 | <type>fid</type> |
---|
| 608 | </param> |
---|
| 609 | <param> |
---|
| 610 | <type>p+</type> |
---|
| 611 | <declname>d1</declname> |
---|
| 612 | <array>3</array> |
---|
| 613 | </param> |
---|
| 614 | <param> |
---|
| 615 | <type> 'bof'</type> |
---|
| 616 | </param> |
---|
| 617 | <briefdescription> |
---|
| 618 | </briefdescription> |
---|
| 619 | <detaileddescription> |
---|
| 620 | </detaileddescription> |
---|
| 621 | <inbodydescription> |
---|
| 622 | </inbodydescription> |
---|
| 623 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="344"/> |
---|
| 624 | </memberdef> |
---|
| 625 | <memberdef kind="function" id="itload_8m_1c1c641b9fd0cf5478fbffe3739e6d689" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 626 | <type>end end</type> |
---|
| 627 | <definition>end end fclose</definition> |
---|
| 628 | <argsstring>(fid)</argsstring> |
---|
| 629 | <name>fclose</name> |
---|
| 630 | <param> |
---|
| 631 | <type>fid</type> |
---|
| 632 | </param> |
---|
| 633 | <briefdescription> |
---|
| 634 | </briefdescription> |
---|
| 635 | <detaileddescription> |
---|
| 636 | </detaileddescription> |
---|
| 637 | <inbodydescription> |
---|
| 638 | </inbodydescription> |
---|
| 639 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="349"/> |
---|
| 640 | </memberdef> |
---|
| 641 | <memberdef kind="function" id="itload_8m_19ead01a6e10f06d11f3a3b5bf5664834" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
| 642 | <type></type> |
---|
| 643 | <definition>if</definition> |
---|
| 644 | <argsstring>(d==0) break</argsstring> |
---|
| 645 | <name>if</name> |
---|
| 646 | <param> |
---|
| 647 | <type>d</type> |
---|
| 648 | <defval>=0</defval> |
---|
| 649 | </param> |
---|
| 650 | <briefdescription> |
---|
| 651 | </briefdescription> |
---|
| 652 | <detaileddescription> |
---|
| 653 | </detaileddescription> |
---|
| 654 | <inbodydescription> |
---|
| 655 | </inbodydescription> |
---|
| 656 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m" line="358"/> |
---|
| 657 | </memberdef> |
---|
| 658 | </sectiondef> |
---|
| 659 | <briefdescription> |
---|
| 660 | </briefdescription> |
---|
| 661 | <detaileddescription> |
---|
| 662 | </detaileddescription> |
---|
| 663 | <programlisting> |
---|
| 664 | <codeline lineno="1"><highlight class="normal">%<sp/>File:<sp/><sp/><sp/>itload.m</highlight></codeline> |
---|
| 665 | <codeline lineno="2"><highlight class="normal">%<sp/>Brief:<sp/><sp/>Load<sp/>an<sp/>IT++<sp/>itfile<sp/>content<sp/>to<sp/>Matlab/Octave<sp/>workspace</highlight></codeline> |
---|
| 666 | <codeline lineno="3"><highlight class="normal">%<sp/>Author:<sp/>Tony<sp/>Ottosson<sp/>and<sp/>Adam<sp/>Piatyszek</highlight></codeline> |
---|
| 667 | <codeline lineno="4"><highlight class="normal">%</highlight></codeline> |
---|
| 668 | <codeline lineno="5"><highlight class="normal">%<sp/>Usage:<sp/>itload("fname.it")</highlight></codeline> |
---|
| 669 | <codeline lineno="6"><highlight class="normal">%</highlight></codeline> |
---|
| 670 | <codeline lineno="7"><highlight class="normal">%<sp/>This<sp/>functions<sp/>loads<sp/>all<sp/>variables<sp/>from<sp/>an<sp/>IT++<sp/>file<sp/>format<sp/>to<sp/>the</highlight></codeline> |
---|
| 671 | <codeline lineno="8"><highlight class="normal">%<sp/>Matlab/Octave<sp/>workspace.</highlight></codeline> |
---|
| 672 | <codeline lineno="9"><highlight class="normal">%</highlight></codeline> |
---|
| 673 | <codeline lineno="10"><highlight class="normal">%<sp/>-------------------------------------------------------------------------</highlight></codeline> |
---|
| 674 | <codeline lineno="11"><highlight class="normal">%</highlight></codeline> |
---|
| 675 | <codeline lineno="12"><highlight class="normal">%<sp/>IT++<sp/>-<sp/>C++<sp/>library<sp/>of<sp/>mathematical,<sp/>signal<sp/>processing,<sp/>speech<sp/>processing,</highlight></codeline> |
---|
| 676 | <codeline lineno="13"><highlight class="normal">%<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>and<sp/>communications<sp/>classes<sp/>and<sp/>functions</highlight></codeline> |
---|
| 677 | <codeline lineno="14"><highlight class="normal">%</highlight></codeline> |
---|
| 678 | <codeline lineno="15"><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> |
---|
| 679 | <codeline lineno="16"><highlight class="normal">%</highlight></codeline> |
---|
| 680 | <codeline lineno="17"><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> |
---|
| 681 | <codeline lineno="18"><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> |
---|
| 682 | <codeline lineno="19"><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> |
---|
| 683 | <codeline lineno="20"><highlight class="normal">%<sp/>(at<sp/>your<sp/>option)<sp/>any<sp/>later<sp/>version.</highlight></codeline> |
---|
| 684 | <codeline lineno="21"><highlight class="normal">%</highlight></codeline> |
---|
| 685 | <codeline lineno="22"><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> |
---|
| 686 | <codeline lineno="23"><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> |
---|
| 687 | <codeline lineno="24"><highlight class="normal">%<sp/>MERCHANTABILITY<sp/>or<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/><sp/>See<sp/>the</highlight></codeline> |
---|
| 688 | <codeline lineno="25"><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> |
---|
| 689 | <codeline lineno="26"><highlight class="normal">%</highlight></codeline> |
---|
| 690 | <codeline lineno="27"><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> |
---|
| 691 | <codeline lineno="28"><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> |
---|
| 692 | <codeline lineno="29"><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> |
---|
| 693 | <codeline lineno="30"><highlight class="normal">%</highlight></codeline> |
---|
| 694 | <codeline lineno="31"><highlight class="normal">%<sp/>-------------------------------------------------------------------------</highlight></codeline> |
---|
| 695 | <codeline lineno="32"><highlight class="normal"></highlight></codeline> |
---|
| 696 | <codeline lineno="33"><highlight class="normal">function<sp/>itload(fname)</highlight></codeline> |
---|
| 697 | <codeline lineno="34"><highlight class="normal"></highlight></codeline> |
---|
| 698 | <codeline lineno="35"><highlight class="normal">[fid,<sp/>err_msg]<sp/>=<sp/>fopen(fname,<sp/></highlight><highlight class="stringliteral">'rb'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'ieee-le'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 699 | <codeline lineno="36"><highlight class="normal"></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fid<sp/>==<sp/>-1)</highlight></codeline> |
---|
| 700 | <codeline lineno="37"><highlight class="normal"><sp/><sp/>fname<sp/>=<sp/>;</highlight></codeline> |
---|
| 701 | <codeline lineno="38"><highlight class="normal"><sp/><sp/>[fid,<sp/>err_msg2]<sp/>=<sp/>fopen(fname,<sp/></highlight><highlight class="stringliteral">'rb'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'ieee-le'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 702 | <codeline lineno="39"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fid<sp/>==<sp/>-1)</highlight></codeline> |
---|
| 703 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/>error(err_msg);</highlight></codeline> |
---|
| 704 | <codeline lineno="41"><highlight class="normal"><sp/><sp/>end</highlight></codeline> |
---|
| 705 | <codeline lineno="42"><highlight class="normal">end</highlight></codeline> |
---|
| 706 | <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
---|
| 707 | <codeline lineno="44"><highlight class="normal">%<sp/>Check<sp/>file<sp/>size</highlight></codeline> |
---|
| 708 | <codeline lineno="45"><highlight class="normal">fseek(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">'eof'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 709 | <codeline lineno="46"><highlight class="normal">file_size<sp/>=<sp/>ftell(fid);</highlight></codeline> |
---|
| 710 | <codeline lineno="47"><highlight class="normal">fseek(fid,<sp/>0,<sp/></highlight><highlight class="stringliteral">'bof'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 711 | <codeline lineno="48"><highlight class="normal"></highlight></codeline> |
---|
| 712 | <codeline lineno="49"><highlight class="normal">%<sp/>Read<sp/></highlight><highlight class="stringliteral">"IT++"</highlight><highlight class="normal"><sp/>magic<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"></highlight></codeline> |
---|
| 713 | <codeline lineno="50"><highlight class="normal">[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>5,<sp/></highlight><highlight class="stringliteral">'char'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 714 | <codeline lineno="51"><highlight class="normal"></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(n<sp/>~=<sp/>5<sp/>|<sp/>d(1:4)<sp/>~=<sp/>[73<sp/>84<sp/>43<sp/>43]</highlight><highlight class="stringliteral">')</highlight></codeline> |
---|
| 715 | <codeline lineno="52"><highlight class="stringliteral"><sp/><sp/>error('</highlight><highlight class="normal">Not<sp/>an<sp/>IT++<sp/>file!</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 716 | <codeline lineno="53"><highlight class="stringliteral">end</highlight></codeline> |
---|
| 717 | <codeline lineno="54"><highlight class="stringliteral"></highlight></codeline> |
---|
| 718 | <codeline lineno="55"><highlight class="stringliteral">%<sp/>Check<sp/>the<sp/>IT++<sp/>file<sp/>version</highlight></codeline> |
---|
| 719 | <codeline lineno="56"><highlight class="stringliteral">if<sp/>(d(5)<sp/>~=<sp/>3)</highlight></codeline> |
---|
| 720 | <codeline lineno="57"><highlight class="stringliteral"><sp/><sp/>error('</highlight><highlight class="normal">Only<sp/>IT++<sp/>file<sp/>version<sp/>3<sp/>is<sp/>supported<sp/>by<sp/></highlight><highlight class="keyword">this</highlight><highlight class="normal"><sp/>function!</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 721 | <codeline lineno="58"><highlight class="stringliteral">end</highlight></codeline> |
---|
| 722 | <codeline lineno="59"><highlight class="stringliteral"></highlight></codeline> |
---|
| 723 | <codeline lineno="60"><highlight class="stringliteral">while<sp/>(1)</highlight></codeline> |
---|
| 724 | <codeline lineno="61"><highlight class="stringliteral"><sp/><sp/>p<sp/>=<sp/>ftell(fid);<sp/>%<sp/>Save<sp/>current<sp/>file<sp/>position</highlight></codeline> |
---|
| 725 | <codeline lineno="62"><highlight class="stringliteral"><sp/><sp/>[d1,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>3,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');<sp/>%<sp/>Read<sp/>header,<sp/>data,<sp/>and<sp/>total<sp/>block<sp/>sizes</highlight></codeline> |
---|
| 726 | <codeline lineno="63"><highlight class="stringliteral"><sp/><sp/>name<sp/>=<sp/>fgetstr(fid);<sp/>%<sp/>Read<sp/>current<sp/>variable<sp/>name</highlight></codeline> |
---|
| 727 | <codeline lineno="64"><highlight class="stringliteral"><sp/><sp/>type<sp/>=<sp/>fgetstr(fid);<sp/>%<sp/>Read<sp/>current<sp/>variable<sp/>type</highlight></codeline> |
---|
| 728 | <codeline lineno="65"><highlight class="stringliteral"><sp/><sp/>fseek(fid,<sp/>p+d1(1),<sp/>'</highlight><highlight class="normal">bof</highlight><highlight class="stringliteral">');<sp/>%<sp/>Skip<sp/>header<sp/>bytes</highlight></codeline> |
---|
| 729 | <codeline lineno="66"><highlight class="stringliteral"></highlight></codeline> |
---|
| 730 | <codeline lineno="67"><highlight class="stringliteral"><sp/><sp/>if<sp/>(length(type)<sp/>==<sp/>0)<sp/>%<sp/>A<sp/>deleted<sp/>entry<sp/>-><sp/>skip<sp/>it</highlight></codeline> |
---|
| 731 | <codeline lineno="68"><highlight class="stringliteral"></highlight></codeline> |
---|
| 732 | <codeline lineno="69"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>bin<sp/>---</highlight></codeline> |
---|
| 733 | <codeline lineno="70"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">bin</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 734 | <codeline lineno="71"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="keywordtype">char</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 735 | <codeline lineno="72"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 736 | <codeline lineno="73"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>int8<sp/>(char)<sp/>---</highlight></codeline> |
---|
| 737 | <codeline lineno="74"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">int8</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 738 | <codeline lineno="75"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">int8</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 739 | <codeline lineno="76"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 740 | <codeline lineno="77"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>int16<sp/>(short)<sp/>---</highlight></codeline> |
---|
| 741 | <codeline lineno="78"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">int16</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 742 | <codeline lineno="79"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">int16</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 743 | <codeline lineno="80"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 744 | <codeline lineno="81"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>int32<sp/>(int)<sp/>---</highlight></codeline> |
---|
| 745 | <codeline lineno="82"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">int32</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 746 | <codeline lineno="83"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">int32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 747 | <codeline lineno="84"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 748 | <codeline lineno="85"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>float32<sp/>(float)<sp/>---</highlight></codeline> |
---|
| 749 | <codeline lineno="86"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 750 | <codeline lineno="87"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 751 | <codeline lineno="88"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 752 | <codeline lineno="89"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>float64<sp/>(double)<sp/>---</highlight></codeline> |
---|
| 753 | <codeline lineno="90"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">float64</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 754 | <codeline lineno="91"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">float64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 755 | <codeline lineno="92"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 756 | <codeline lineno="93"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>cfloat32<sp/>(complex<float>)<sp/>---</highlight></codeline> |
---|
| 757 | <codeline lineno="94"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">cfloat32</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 758 | <codeline lineno="95"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 759 | <codeline lineno="96"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1),<sp/>d(2));</highlight></codeline> |
---|
| 760 | <codeline lineno="97"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 761 | <codeline lineno="98"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>cfloat64<sp/>(complex<double>)<sp/>---</highlight></codeline> |
---|
| 762 | <codeline lineno="99"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">cfloat64</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 763 | <codeline lineno="100"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">float64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 764 | <codeline lineno="101"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1),<sp/>d(2));</highlight></codeline> |
---|
| 765 | <codeline lineno="102"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 766 | <codeline lineno="103"><highlight class="stringliteral"></highlight></codeline> |
---|
| 767 | <codeline lineno="104"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>bvec<sp/>---</highlight></codeline> |
---|
| 768 | <codeline lineno="105"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">bvec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 769 | <codeline lineno="106"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 770 | <codeline lineno="107"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="keywordtype">char</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 771 | <codeline lineno="108"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 772 | <codeline lineno="109"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>svec<sp/>---</highlight></codeline> |
---|
| 773 | <codeline lineno="110"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">svec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 774 | <codeline lineno="111"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 775 | <codeline lineno="112"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="normal">int16</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 776 | <codeline lineno="113"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 777 | <codeline lineno="114"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>ivec<sp/>---</highlight></codeline> |
---|
| 778 | <codeline lineno="115"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">ivec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 779 | <codeline lineno="116"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 780 | <codeline lineno="117"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="normal">int32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 781 | <codeline lineno="118"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 782 | <codeline lineno="119"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>fvec<sp/>---</highlight></codeline> |
---|
| 783 | <codeline lineno="120"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">fvec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 784 | <codeline lineno="121"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 785 | <codeline lineno="122"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 786 | <codeline lineno="123"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 787 | <codeline lineno="124"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>dvec<sp/>---</highlight></codeline> |
---|
| 788 | <codeline lineno="125"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">dvec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 789 | <codeline lineno="126"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 790 | <codeline lineno="127"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="normal">float64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 791 | <codeline lineno="128"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 792 | <codeline lineno="129"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>fcvec<sp/>---</highlight></codeline> |
---|
| 793 | <codeline lineno="130"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">fcvec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 794 | <codeline lineno="131"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 795 | <codeline lineno="132"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size*2,<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 796 | <codeline lineno="133"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1:2:end),<sp/>d(2:2:end));</highlight></codeline> |
---|
| 797 | <codeline lineno="134"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 798 | <codeline lineno="135"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>dcvec<sp/>---</highlight></codeline> |
---|
| 799 | <codeline lineno="136"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">dcvec</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 800 | <codeline lineno="137"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 801 | <codeline lineno="138"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size*2,<sp/>'</highlight><highlight class="normal">float64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 802 | <codeline lineno="139"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1:2:end),<sp/>d(2:2:end));</highlight></codeline> |
---|
| 803 | <codeline lineno="140"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 804 | <codeline lineno="141"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>string<sp/>---</highlight></codeline> |
---|
| 805 | <codeline lineno="142"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="keywordtype">string</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 806 | <codeline lineno="143"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 807 | <codeline lineno="144"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/>'</highlight><highlight class="keywordtype">char</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 808 | <codeline lineno="145"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>char(d);</highlight></codeline> |
---|
| 809 | <codeline lineno="146"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 810 | <codeline lineno="147"><highlight class="stringliteral"></highlight></codeline> |
---|
| 811 | <codeline lineno="148"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>bmat<sp/>---</highlight></codeline> |
---|
| 812 | <codeline lineno="149"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">bmat</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 813 | <codeline lineno="150"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 814 | <codeline lineno="151"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'char'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 815 | <codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 816 | <codeline lineno="153"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>smat<sp/>---</highlight></codeline> |
---|
| 817 | <codeline lineno="154"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'smat'))</highlight></codeline> |
---|
| 818 | <codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'uint64');</highlight></codeline> |
---|
| 819 | <codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size</highlight><highlight class="stringliteral">',<sp/>'</highlight><highlight class="normal">int16</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 820 | <codeline lineno="157"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 821 | <codeline lineno="158"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>imat<sp/>---</highlight></codeline> |
---|
| 822 | <codeline lineno="159"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">imat</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 823 | <codeline lineno="160"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 824 | <codeline lineno="161"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'int32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 825 | <codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 826 | <codeline lineno="163"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>fmat<sp/>---</highlight></codeline> |
---|
| 827 | <codeline lineno="164"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'fmat'))</highlight></codeline> |
---|
| 828 | <codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'uint64');</highlight></codeline> |
---|
| 829 | <codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size</highlight><highlight class="stringliteral">',<sp/>'</highlight><highlight class="normal">float32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 830 | <codeline lineno="167"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 831 | <codeline lineno="168"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>dmat<sp/>---</highlight></codeline> |
---|
| 832 | <codeline lineno="169"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">dmat</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 833 | <codeline lineno="170"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 834 | <codeline lineno="171"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 835 | <codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 836 | <codeline lineno="173"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>fcmat<sp/>---</highlight></codeline> |
---|
| 837 | <codeline lineno="174"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'fcmat'))</highlight></codeline> |
---|
| 838 | <codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'uint64');</highlight></codeline> |
---|
| 839 | <codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size(1)*size(2)*2,<sp/></highlight><highlight class="stringliteral">'float32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 840 | <codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>reshape(complex(d(1:2:end),<sp/>d(2:2:end)),<sp/>size(1),<sp/>size(2));</highlight></codeline> |
---|
| 841 | <codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 842 | <codeline lineno="179"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>dcmat<sp/>---</highlight></codeline> |
---|
| 843 | <codeline lineno="180"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'dcmat'))</highlight></codeline> |
---|
| 844 | <codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'uint64');</highlight></codeline> |
---|
| 845 | <codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size(1)*size(2)*2,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 846 | <codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>reshape(complex(d(1:2:end),<sp/>d(2:2:end)),<sp/>size(1),<sp/>size(2));</highlight></codeline> |
---|
| 847 | <codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 848 | <codeline lineno="185"><highlight class="normal"></highlight></codeline> |
---|
| 849 | <codeline lineno="186"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>bArray<sp/>---</highlight></codeline> |
---|
| 850 | <codeline lineno="187"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'bArray'))</highlight></codeline> |
---|
| 851 | <codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 852 | <codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/></highlight><highlight class="stringliteral">'char'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 853 | <codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 854 | <codeline lineno="191"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>sArray<sp/>---</highlight></codeline> |
---|
| 855 | <codeline lineno="192"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'sArray'))</highlight></codeline> |
---|
| 856 | <codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 857 | <codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/></highlight><highlight class="stringliteral">'int16'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 858 | <codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 859 | <codeline lineno="196"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>iArray<sp/>---</highlight></codeline> |
---|
| 860 | <codeline lineno="197"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'iArray'))</highlight></codeline> |
---|
| 861 | <codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 862 | <codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/></highlight><highlight class="stringliteral">'int32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 863 | <codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 864 | <codeline lineno="201"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>fArray<sp/>---</highlight></codeline> |
---|
| 865 | <codeline lineno="202"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'fArray'))</highlight></codeline> |
---|
| 866 | <codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 867 | <codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/></highlight><highlight class="stringliteral">'float32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 868 | <codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 869 | <codeline lineno="206"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>dArray<sp/>---</highlight></codeline> |
---|
| 870 | <codeline lineno="207"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'dArray'))</highlight></codeline> |
---|
| 871 | <codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 872 | <codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 873 | <codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 874 | <codeline lineno="211"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>fcArray<sp/>---</highlight></codeline> |
---|
| 875 | <codeline lineno="212"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'fcArray'))</highlight></codeline> |
---|
| 876 | <codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 877 | <codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size*2,<sp/></highlight><highlight class="stringliteral">'float32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 878 | <codeline lineno="215"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1:2:end),<sp/>d(2:2:end));</highlight></codeline> |
---|
| 879 | <codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 880 | <codeline lineno="217"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>dcArray<sp/>---</highlight></codeline> |
---|
| 881 | <codeline lineno="218"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'dcArray'))</highlight></codeline> |
---|
| 882 | <codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 883 | <codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size*2,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 884 | <codeline lineno="221"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/>complex(d(1:2:end),<sp/>d(2:2:end));</highlight></codeline> |
---|
| 885 | <codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d);</highlight></codeline> |
---|
| 886 | <codeline lineno="223"><highlight class="normal"></highlight></codeline> |
---|
| 887 | <codeline lineno="224"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>bvecArray<sp/>---</highlight></codeline> |
---|
| 888 | <codeline lineno="225"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'bvecArray'))</highlight></codeline> |
---|
| 889 | <codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 890 | <codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 891 | <codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 892 | <codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 893 | <codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2,<sp/></highlight><highlight class="stringliteral">'char'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 894 | <codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 895 | <codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 896 | <codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 897 | <codeline lineno="234"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>svecArray<sp/>---</highlight></codeline> |
---|
| 898 | <codeline lineno="235"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'svecArray'))</highlight></codeline> |
---|
| 899 | <codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 900 | <codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 901 | <codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 902 | <codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 903 | <codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2,<sp/></highlight><highlight class="stringliteral">'int16'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 904 | <codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 905 | <codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 906 | <codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 907 | <codeline lineno="244"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>ivecArray<sp/>---</highlight></codeline> |
---|
| 908 | <codeline lineno="245"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'ivecArray'))</highlight></codeline> |
---|
| 909 | <codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 910 | <codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 911 | <codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 912 | <codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 913 | <codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2,<sp/></highlight><highlight class="stringliteral">'int32'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 914 | <codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 915 | <codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 916 | <codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 917 | <codeline lineno="254"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>vecArray<sp/>---</highlight></codeline> |
---|
| 918 | <codeline lineno="255"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'vecArray'))</highlight></codeline> |
---|
| 919 | <codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 920 | <codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 921 | <codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 922 | <codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 923 | <codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 924 | <codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 925 | <codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 926 | <codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 927 | <codeline lineno="264"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>cvecArray<sp/>---</highlight></codeline> |
---|
| 928 | <codeline lineno="265"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'cvecArray'))</highlight></codeline> |
---|
| 929 | <codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 930 | <codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 931 | <codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 932 | <codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 933 | <codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size*2,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 934 | <codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>complex(d(1:2:end),<sp/>d(2:2:end));</highlight></codeline> |
---|
| 935 | <codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 936 | <codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 937 | <codeline lineno="274"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>stringArray<sp/>---</highlight></codeline> |
---|
| 938 | <codeline lineno="275"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'stringArray'))</highlight></codeline> |
---|
| 939 | <codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 940 | <codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 941 | <codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 942 | <codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 943 | <codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2,<sp/></highlight><highlight class="stringliteral">'char'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 944 | <codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>char(d);</highlight></codeline> |
---|
| 945 | <codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 946 | <codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 947 | <codeline lineno="284"><highlight class="normal"></highlight></codeline> |
---|
| 948 | <codeline lineno="285"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>bmatArray<sp/>---</highlight></codeline> |
---|
| 949 | <codeline lineno="286"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'bmatArray'))</highlight></codeline> |
---|
| 950 | <codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 951 | <codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 952 | <codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 953 | <codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 954 | <codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2</highlight><highlight class="stringliteral">',<sp/>'</highlight><highlight class="keywordtype">char</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 955 | <codeline lineno="292"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 956 | <codeline lineno="293"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 957 | <codeline lineno="294"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 958 | <codeline lineno="295"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>smatArray<sp/>---</highlight></codeline> |
---|
| 959 | <codeline lineno="296"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">smatArray</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 960 | <codeline lineno="297"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 961 | <codeline lineno="298"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 962 | <codeline lineno="299"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>for<sp/>i=1:size;</highlight></codeline> |
---|
| 963 | <codeline lineno="300"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 964 | <codeline lineno="301"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'int16'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 965 | <codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 966 | <codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 967 | <codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 968 | <codeline lineno="305"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>imatArray<sp/>---</highlight></codeline> |
---|
| 969 | <codeline lineno="306"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'imatArray'))</highlight></codeline> |
---|
| 970 | <codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 971 | <codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 972 | <codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 973 | <codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 974 | <codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2</highlight><highlight class="stringliteral">',<sp/>'</highlight><highlight class="normal">int32</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 975 | <codeline lineno="312"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 976 | <codeline lineno="313"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 977 | <codeline lineno="314"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>assignin('</highlight><highlight class="normal">caller</highlight><highlight class="stringliteral">',<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 978 | <codeline lineno="315"><highlight class="stringliteral"><sp/><sp/>%<sp/>---<sp/>matArray<sp/>---</highlight></codeline> |
---|
| 979 | <codeline lineno="316"><highlight class="stringliteral"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'</highlight><highlight class="normal">matArray</highlight><highlight class="stringliteral">'))</highlight></codeline> |
---|
| 980 | <codeline lineno="317"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 981 | <codeline lineno="318"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 982 | <codeline lineno="319"><highlight class="stringliteral"><sp/><sp/><sp/><sp/>for<sp/>i=1:size;</highlight></codeline> |
---|
| 983 | <codeline lineno="320"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/>'</highlight><highlight class="normal">uint64</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
| 984 | <codeline lineno="321"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2'</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 985 | <codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>d;</highlight></codeline> |
---|
| 986 | <codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 987 | <codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 988 | <codeline lineno="325"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>cmatArray<sp/>---</highlight></codeline> |
---|
| 989 | <codeline lineno="326"><highlight class="normal"><sp/><sp/>elseif<sp/>(strcmp(type,<sp/>'cmatArray'))</highlight></codeline> |
---|
| 990 | <codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/>[size,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'uint64');</highlight></codeline> |
---|
| 991 | <codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/>clear<sp/>d2;</highlight></codeline> |
---|
| 992 | <codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i=1:size;</highlight></codeline> |
---|
| 993 | <codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[size2,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>2,<sp/></highlight><highlight class="stringliteral">'uint64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 994 | <codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>size2(1)*size2(2)*2,<sp/></highlight><highlight class="stringliteral">'float64'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 995 | <codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d2{i}<sp/>=<sp/>reshape(complex(d(1:2:end),<sp/>d(2:2:end)),<sp/>size2(1),<sp/>size2(2));</highlight></codeline> |
---|
| 996 | <codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
| 997 | <codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/>assignin(</highlight><highlight class="stringliteral">'caller'</highlight><highlight class="normal">,<sp/>name,<sp/>d2);</highlight></codeline> |
---|
| 998 | <codeline lineno="335"><highlight class="normal"></highlight></codeline> |
---|
| 999 | <codeline lineno="336"><highlight class="normal"><sp/><sp/>%<sp/>---<sp/>else<sp/>---</highlight></codeline> |
---|
| 1000 | <codeline lineno="337"><highlight class="normal"><sp/><sp/>else</highlight></codeline> |
---|
| 1001 | <codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/>warning(['Not<sp/>supported<sp/>type:<sp/>'<sp/>type]);</highlight></codeline> |
---|
| 1002 | <codeline lineno="339"><highlight class="normal"><sp/><sp/>end</highlight></codeline> |
---|
| 1003 | <codeline lineno="340"><highlight class="normal"></highlight></codeline> |
---|
| 1004 | <codeline lineno="341"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(p<sp/>+<sp/>d1(3)<sp/>>=<sp/>file_size)</highlight></codeline> |
---|
| 1005 | <codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> |
---|
| 1006 | <codeline lineno="343"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> |
---|
| 1007 | <codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/>fseek(fid,<sp/>p+d1(3),<sp/></highlight><highlight class="stringliteral">'bof'</highlight><highlight class="normal">);</highlight></codeline> |
---|
| 1008 | <codeline lineno="345"><highlight class="normal"><sp/><sp/>end</highlight></codeline> |
---|
| 1009 | <codeline lineno="346"><highlight class="normal"></highlight></codeline> |
---|
| 1010 | <codeline lineno="347"><highlight class="normal">end</highlight></codeline> |
---|
| 1011 | <codeline lineno="348"><highlight class="normal"></highlight></codeline> |
---|
| 1012 | <codeline lineno="349"><highlight class="normal">fclose(fid);</highlight></codeline> |
---|
| 1013 | <codeline lineno="350"><highlight class="normal"></highlight></codeline> |
---|
| 1014 | <codeline lineno="351"><highlight class="normal"></highlight></codeline> |
---|
| 1015 | <codeline lineno="352"><highlight class="normal"></highlight></codeline> |
---|
| 1016 | <codeline lineno="353"><highlight class="normal">function<sp/><ref refid="classstr" kindref="compound" tooltip="Structure of RV (used internally).">str</ref><sp/>=<sp/>fgetstr(fid)</highlight></codeline> |
---|
| 1017 | <codeline lineno="354"><highlight class="normal">str<sp/>=<sp/>'';</highlight></codeline> |
---|
| 1018 | <codeline lineno="355"><highlight class="normal">while<sp/>(1)</highlight></codeline> |
---|
| 1019 | <codeline lineno="356"><highlight class="normal"><sp/><sp/>[d,<sp/>n]<sp/>=<sp/>fread(fid,<sp/>1,<sp/>'</highlight><highlight class="keywordtype">char</highlight><highlight class="normal">');</highlight></codeline> |
---|
| 1020 | <codeline lineno="357"><highlight class="normal"><sp/><sp/>if<sp/>(d<sp/>==<sp/>0)</highlight></codeline> |
---|
| 1021 | <codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/>break;</highlight></codeline> |
---|
| 1022 | <codeline lineno="359"><highlight class="normal"><sp/><sp/>end</highlight></codeline> |
---|
| 1023 | <codeline lineno="360"><highlight class="normal"><sp/><sp/>str<sp/>=<sp/>[str<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">(d)];</highlight></codeline> |
---|
| 1024 | <codeline lineno="361"><highlight class="normal">end</highlight></codeline> |
---|
| 1025 | </programlisting> |
---|
| 1026 | <location file="/home/smidl/work/git/mixpp/matlab/itload.m"/> |
---|
| 1027 | </compounddef> |
---|
| 1028 | </doxygen> |
---|