Index: doc/html/mexlog_8h-source.html
===================================================================
--- doc/html/mexlog_8h-source.html (revision 323)
+++ doc/html/mexlog_8h-source.html (revision 353)
@@ -85,29 +85,41 @@
 <a name="l00021"></a>00021 <span class="keyword">class </span>mexlog : <span class="keyword">public</span> memlog{
 <a name="l00022"></a>00022         <span class="keyword">public</span>:
-<a name="l00024"></a>00024         mexlog(<span class="keywordtype">int</span> maxlen): memlog(maxlen){};
+<a name="l00024"></a>00024         mexlog(<span class="keywordtype">int</span> maxlen): memlog(maxlen,<span class="stringliteral">"mx"</span>){};
 <a name="l00026"></a>00026         mxArray* toCell(){
 <a name="l00027"></a>00027                 mxArray* tmp = mxCreateStructMatrix(1,1,0,NULL);
 <a name="l00028"></a>00028 
-<a name="l00029"></a>00029                 <span class="comment">//copy vectors to mxStruct</span>
-<a name="l00030"></a>00030                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;names.length();i++){
-<a name="l00031"></a>00031                         mat&amp; M=vectors(i);
-<a name="l00032"></a>00032                         mxArray* fld=mxCreateDoubleMatrix(M.rows(), M.cols(), mxREAL);
-<a name="l00033"></a>00033                         mat2mxArray(M,fld);
-<a name="l00034"></a>00034                         mxReplaceFieldNM(tmp, names(i).c_str(), fld);
-<a name="l00035"></a>00035                 }
-<a name="l00036"></a>00036                 <span class="keywordflow">return</span> tmp;
-<a name="l00037"></a>00037         }
-<a name="l00038"></a>00038 };
-<a name="l00039"></a>00039 
-<a name="l00040"></a>00040 <span class="keyword">class </span>UImexlog: <span class="keyword">public</span> UIbuilder{
-<a name="l00041"></a>00041         <span class="keyword">public</span>:
-<a name="l00042"></a>00042                 UImexlog():UIbuilder(<span class="stringliteral">"mexlog"</span>){};
-<a name="l00043"></a>00043                 bdmroot* build(Setting &amp;S)<span class="keyword"> const</span>{
-<a name="l00044"></a>00044                         <span class="keywordflow">return</span> <span class="keyword">new</span> mexlog(S[<span class="stringliteral">"maxlen"</span>]);
-<a name="l00045"></a>00045                 };
-<a name="l00046"></a>00046 };
-<a name="l00047"></a>00047 UIREGISTER(UImexlog);
+<a name="l00029"></a>00029                 <span class="comment">//copied from itsave</span>
+<a name="l00030"></a>00030                 <span class="keywordtype">int</span> i;
+<a name="l00031"></a>00031                 <span class="keywordtype">string</span> vec_name=<span class="stringliteral">""</span>;
+<a name="l00032"></a>00032                 <span class="keywordtype">int</span> istart, iend;
+<a name="l00033"></a>00033                 
+<a name="l00034"></a>00034                 mat M; <span class="comment">//temporary matrix</span>
+<a name="l00035"></a>00035                 <span class="keywordflow">for</span> ( i=0; i&lt;entries.length();i++ ) {
+<a name="l00036"></a>00036                         istart=0;
+<a name="l00037"></a>00037                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j&lt;entries(i).length(); j++){ <span class="comment">// same for as in add!!!</span>
+<a name="l00038"></a>00038                                 vec_name = names(i) + entries(i).name(j);
+<a name="l00039"></a>00039                                 iend=istart+entries(i).size(j)-1;
+<a name="l00040"></a>00040                                 M=vectors(i).get_cols(istart,iend);
+<a name="l00041"></a>00041                                 istart=iend+1;
+<a name="l00042"></a>00042                                 <span class="comment">// copy the selection to mx</span>
+<a name="l00043"></a>00043                                 mxArray* fld=mxCreateDoubleMatrix(M.rows(), M.cols(), mxREAL);
+<a name="l00044"></a>00044                                 <a class="code" href="group__mexfiles.html#g662aa389e9c98b92a4880e2ab1241779" title="Convert mat to the matlab-format mxArray.">mat2mxArray</a>(M,fld);
+<a name="l00045"></a>00045                                 mxReplaceFieldNM(tmp, vec_name.c_str(), fld);
+<a name="l00046"></a>00046                         }
+<a name="l00047"></a>00047                 }
+<a name="l00048"></a>00048                 <span class="keywordflow">return</span> tmp;
+<a name="l00049"></a>00049         }
+<a name="l00050"></a>00050 };
+<a name="l00051"></a>00051 
+<a name="l00052"></a>00052 <span class="keyword">class </span>UImexlog: <span class="keyword">public</span> UIbuilder{
+<a name="l00053"></a>00053         <span class="keyword">public</span>:
+<a name="l00054"></a>00054                 UImexlog():UIbuilder(<span class="stringliteral">"mexlog"</span>){};
+<a name="l00055"></a>00055                 bdmroot* build(Setting &amp;S)<span class="keyword"> const</span>{
+<a name="l00056"></a>00056                         <span class="keywordflow">return</span> <span class="keyword">new</span> mexlog(S[<span class="stringliteral">"maxlen"</span>]);
+<a name="l00057"></a>00057                 };
+<a name="l00058"></a>00058 };
+<a name="l00059"></a>00059 UIREGISTER(UImexlog);
 </pre></div></div>
-<hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 23 21:06:42 2009 for mixpp by&nbsp;
+<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:12 2009 for mixpp by&nbsp;
 <a href="http://www.doxygen.org/index.html">
 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
