 = c2d(sys,ts);
0033 
0034 x0 = Sys.x0;
0035 nu=Sys.nu;
0036 nx=Sys.nx;
0037 nw=Sys.nw;
0038 ny=Sys.ny;
0039 
0040 <span class="comment">% reference disturbance</span>
0041 <span class="keyword">if</span> isempty(Sys.Wref)
0042     Sys.Wref = 0*time;
0043 <span class="keyword">end</span>
0044 Wref = Sys.Wref;
0045 <span class="keyword">for</span> iwx=1:nw
0046     Wn(iwx,:) = interp1( time , Wref(iwx,:)', time_d)';
0047 <span class="keyword">end</span>
0048 
0049 
0050 <span class="comment">%% Make data nb_