end</span>
0026 
0027   <span class="comment">%%%%%%%%%  Convert the data %%%%%%%%%</span>
0028 
0029   bmidata = [];
0030   bmidata.name = name;
0031 
0032   <span class="comment">% no of variables</span>
0033   <span class="keyword">if</span> (~isfield(pen,<span class="string">'vars'</span>) || pen.vars&lt;=0)
0034     error(<span class="string">'Input: wrong or missing vars component in pen.'</span>);
0035   <span class="keyword">end</span>
0036   bmidata.Nx = pen.vars;
0037   Nx = pen.vars;
0038 
0039  