pmsm_sim_disp.m for for i i 1:4 subplot(4,1,i) plot(Dt(i,:)') end figure(2) for i=1:4 subplot(4,1,i) plot(xth(i,:)') hold on __pad4__ __pad4__ itload ('../tests/pmsm_sim.it') figure(1) itload '../tests/pmsm_sim.it' plot (xthE(i,:)','r') plot(xthM(i+4 plot xthE(i,:)' 'r' g g plot (xthV(i,:)','m') plot xthV(i,:)' 'm' end end figure (3) for i figure 3 hold off hold off plot (llgrid, ll(:, floor(ndat/3)),':') plot llgrid ll(:, floor(ndat/3)) ':' hold on hold on plot (llgrid, ll(:, floor(2 *ndat/3)),'--') plot llgrid ll(:, floor(2 *ndat/3)) '--' plot (llgrid, ll(:, ndat)) plot llgrid ll(:, ndat) itload('../tests/pmsm_sim.it') figure(1); fori=1:4 subplot(4,1,i) plot(Dt(i,:)') end figure(2) fori=1:4 subplot(4,1,i) plot(xth(i,:)') holdon; plot(xthE(i,:)','r') plot(xthM(i+4,:)','g') plot(xthV(i,:)','m'); end figure(3) fori=1:4 subplot(4,1,i) plot(xthM(i,:)') end %figure(3) %ndat=size(ll,2); %holdoff %plot(llgrid,ll(:,floor(ndat/3)),':'); %holdon %plot(llgrid,ll(:,floor(2*ndat/3)),'--'); %plot(llgrid,ll(:,ndat));