2010/rob10/slotcar: plotSlotCarRacerData.m

File plotSlotCarRacerData.m, 367 bytes (added by tobi, 8 years ago)

plots the slot car racer log data for measured vs desired speed

Line 
1%% load data
2load SlotCarRacer-2010-07-06T22-40-46+0200
3
4%% plot controller data
5% filter measurements with box filter
6n=10;
7box=ones(n,1);
8mf=conv(box,meas)/n;
9m=length(mf);
10mf=mf(n:m);
11figure(1);
12plot(ts,meas,ts,mf,ts,des,'r','linewidth',2)
13xlabel 'time (s)'; ylabel 'speeed (PPS)'
14save SlotCarRacer-2010-07-06T22-40-46+0200
15set(gca,'xlim',[0,70])
16