[4] | 1 | function plotDD(AM,isup,ishift) |
---|
| 2 | |
---|
| 3 | figure |
---|
| 4 | |
---|
| 5 | bpmnum = (1:7) + ishift; |
---|
| 6 | turnnum = 4:40; |
---|
| 7 | |
---|
| 8 | h1=subplot(2,2,1); |
---|
| 9 | plot(AM.Data.Va(bpmnum ,turnnum)','.-') |
---|
| 10 | ylabel('Va (a.u.)') |
---|
| 11 | suptitle(sprintf('Cell %d',1+isup)) |
---|
| 12 | |
---|
| 13 | h2=subplot(2,2,2); |
---|
| 14 | plot(AM.Data.Vb(bpmnum ,turnnum)','.-') |
---|
| 15 | ylabel('Vb (a.u.)') |
---|
| 16 | |
---|
| 17 | h3=subplot(2,2,3); |
---|
| 18 | plot(AM.Data.Vc(bpmnum,turnnum)','.-') |
---|
| 19 | ylabel('Vc (a.u.)') |
---|
| 20 | xlabel('BPM number') |
---|
| 21 | |
---|
| 22 | h4=subplot(2,2,4); |
---|
| 23 | plot(AM.Data.Vd(bpmnum,turnnum)','.-') |
---|
| 24 | ylabel('Vd (a.u.)') |
---|
| 25 | xlabel('BPM number') |
---|
| 26 | |
---|
| 27 | linkaxes([h1 h2 h3 h4],'x'); |
---|
| 28 | set([h1 h2 h3 h4],'XGrid','On','YGrid','On'); |
---|
| 29 | legendstr = eval(['{', sprintf('''BPM[%2d %d]'',',AM.DeviceList(bpmnum,:)'), '}']); |
---|
| 30 | legend1 = legend(... |
---|
| 31 | legendstr,... |
---|
| 32 | 'LineWidth',1,... |
---|
| 33 | 'Position',[0.3202 0.4961 0.4257 0.02956],... |
---|
| 34 | 'Orientation','horizontal'); |
---|
| 35 | |
---|
| 36 | figure |
---|
| 37 | |
---|
| 38 | bpmnum = (8:15) + ishift; |
---|
| 39 | |
---|
| 40 | h1=subplot(2,2,1); |
---|
| 41 | plot(AM.Data.Va(bpmnum,turnnum)','.-') |
---|
| 42 | ylabel('Va (a.u.)') |
---|
| 43 | suptitle(sprintf('Cell %d',2+isup)) |
---|
| 44 | |
---|
| 45 | h2=subplot(2,2,2); |
---|
| 46 | plot(AM.Data.Vb(bpmnum ,turnnum)','.-') |
---|
| 47 | ylabel('Vb (a.u.)') |
---|
| 48 | |
---|
| 49 | h3=subplot(2,2,3); |
---|
| 50 | plot(AM.Data.Vc(bpmnum,turnnum)','.-') |
---|
| 51 | grid on |
---|
| 52 | ylabel('Vc (a.u.)') |
---|
| 53 | xlabel('BPM number') |
---|
| 54 | |
---|
| 55 | h4=subplot(2,2,4); |
---|
| 56 | plot(AM.Data.Vd(bpmnum,turnnum)','.-') |
---|
| 57 | ylabel('Vd (a.u.)') |
---|
| 58 | xlabel('BPM number') |
---|
| 59 | |
---|
| 60 | linkaxes([h1 h2 h3 h4],'x'); |
---|
| 61 | set([h1 h2 h3 h4],'XGrid','On','YGrid','On'); |
---|
| 62 | legendstr = eval(['{', sprintf('''BPM[%2d %d]'',',AM.DeviceList(bpmnum,:)'), '}']); |
---|
| 63 | legend1 = legend(... |
---|
| 64 | legendstr,... |
---|
| 65 | 'LineWidth',1,... |
---|
| 66 | 'Position',[0.3202 0.4961 0.4257 0.02956],... |
---|
| 67 | 'Orientation','horizontal'); |
---|
| 68 | |
---|
| 69 | figure |
---|
| 70 | |
---|
| 71 | bpmnum = (16:23) + ishift; |
---|
| 72 | |
---|
| 73 | h1=subplot(2,2,1); |
---|
| 74 | plot(AM.Data.Va(bpmnum,turnnum)','.-') |
---|
| 75 | ylabel('Va (a.u.)') |
---|
| 76 | suptitle(sprintf('Cell %d',3+isup)) |
---|
| 77 | |
---|
| 78 | h2=subplot(2,2,2); |
---|
| 79 | plot(AM.Data.Vb(bpmnum ,turnnum)','.-') |
---|
| 80 | grid on |
---|
| 81 | ylabel('Vb (a.u.)') |
---|
| 82 | |
---|
| 83 | h3=subplot(2,2,3); |
---|
| 84 | plot(AM.Data.Vc(bpmnum,turnnum)','.-') |
---|
| 85 | ylabel('Vc (a.u.)') |
---|
| 86 | xlabel('BPM number') |
---|
| 87 | |
---|
| 88 | h4=subplot(2,2,4); |
---|
| 89 | plot(AM.Data.Vd(bpmnum,turnnum)','.-') |
---|
| 90 | ylabel('Vd (a.u.)') |
---|
| 91 | xlabel('BPM number') |
---|
| 92 | |
---|
| 93 | linkaxes([h1 h2 h3 h4],'x'); |
---|
| 94 | set([h1 h2 h3 h4],'XGrid','On','YGrid','On'); |
---|
| 95 | legendstr = eval(['{', sprintf('''BPM[%2d %d]'',',AM.DeviceList(bpmnum,:)'), '}']); |
---|
| 96 | legend1 = legend(... |
---|
| 97 | legendstr,... |
---|
| 98 | 'LineWidth',1,... |
---|
| 99 | 'Position',[0.3202 0.4961 0.4257 0.02956],... |
---|
| 100 | 'Orientation','horizontal'); |
---|
| 101 | |
---|
| 102 | figure |
---|
| 103 | |
---|
| 104 | bpmnum = (24:30) + ishift; |
---|
| 105 | |
---|
| 106 | h1=subplot(2,2,1); |
---|
| 107 | plot(AM.Data.Va(bpmnum,turnnum)','.-') |
---|
| 108 | ylabel('Va (a.u.)') |
---|
| 109 | suptitle(sprintf('Cell %d',4+isup)) |
---|
| 110 | |
---|
| 111 | h2=subplot(2,2,2); |
---|
| 112 | plot(AM.Data.Vb(bpmnum ,turnnum)','.-') |
---|
| 113 | ylabel('Vb (a.u.)') |
---|
| 114 | |
---|
| 115 | h3=subplot(2,2,3); |
---|
| 116 | plot(AM.Data.Vc(bpmnum,turnnum)','.-') |
---|
| 117 | ylabel('Vc (a.u.)') |
---|
| 118 | xlabel('BPM number') |
---|
| 119 | |
---|
| 120 | h4=subplot(2,2,4); |
---|
| 121 | plot(AM.Data.Vd(bpmnum,turnnum)','.-') |
---|
| 122 | ylabel('Vd (a.u.)') |
---|
| 123 | xlabel('BPM number') |
---|
| 124 | |
---|
| 125 | linkaxes([h1 h2 h3 h4],'x'); |
---|
| 126 | set([h1 h2 h3 h4],'XGrid','On','YGrid','On'); |
---|
| 127 | legendstr = eval(['{', sprintf('''BPM[%2d %d]'',',AM.DeviceList(bpmnum,:)'), '}']); |
---|
| 128 | legend1 = legend(... |
---|
| 129 | legendstr,... |
---|
| 130 | 'LineWidth',1,... |
---|
| 131 | 'Position',[0.3202 0.4961 0.4257 0.02956],... |
---|
| 132 | 'Orientation','horizontal'); |
---|