Changeset 382 for applications
- Timestamp:
- 06/17/09 23:54:08 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/Barcelona/pwm.m
r352 r382 27 27 %ub 28 28 subplot(2,2,3); 29 plot(time(detail),M.modelu b(detail)-M.tub(detail));30 title('Difference between simulated and compensated observed u_{s,\ beta} (detail)')29 plot(time(detail),M.modelua(detail)-M.tua(detail)); 30 title('Difference between simulated and compensated observed u_{s,\alpha} (detail)') 31 31 32 32 subplot(2,2,4); 33 hist(M.modelu b-M.tub,30);33 hist(M.modelua-M.tua,30); 34 34 title('Histogram of difference on the full data record of 8s') 35 35 … … 39 39 bnds = [max(abs(M.modelua-M.tua)), max(abs(M.modelub-M.tub)) 0 0]; 40 40 Qpwm = (dt/Ls)^2*[1 1 0 0]%(2*bnds).^2/12 41 42 figure(3); 43 plot(M.xom); 41 44 42 45 %%%%%%%%%%%%%%% Integration