1 | % 1 floater 2 pts |
---|
2 | |
---|
3 | close all |
---|
4 | |
---|
5 | figure(1) |
---|
6 | |
---|
7 | ls; |
---|
8 | load obs_float_test.dat; |
---|
9 | whos; |
---|
10 | obs_float_test (1:4,:) |
---|
11 | x=obs_float_test (1:2:4,4); |
---|
12 | y=obs_float_test (2:2:4,4); |
---|
13 | x=x+1; |
---|
14 | y=y+1; |
---|
15 | plot(x(1),y(1),'+') |
---|
16 | hold on; |
---|
17 | plot(x(2),y(2),'>') |
---|
18 | hold on; |
---|
19 | plot(x(1:2),y(1:2),'+'); |
---|
20 | hold on; |
---|
21 | plot(x(1:2),y(1:2),'-r') |
---|
22 | hold on; |
---|
23 | |
---|
24 | |
---|
25 | x3=obs_float_test (5:2:8,4); |
---|
26 | y3=obs_float_test (6:2:8,4); |
---|
27 | x3=x3+1; |
---|
28 | y3=y3+1; |
---|
29 | plot(x3(1),y3(1),'+') |
---|
30 | hold on; |
---|
31 | plot(x3(2),y3(2),'>') |
---|
32 | hold on; |
---|
33 | plot(x3(1:2),y3(1:2),'+'); |
---|
34 | hold on; |
---|
35 | plot(x3(1:2),y3(1:2),'-r') |
---|
36 | hold on; |
---|
37 | |
---|
38 | x5=obs_float_test (9:2:12,4); |
---|
39 | y5=obs_float_test (10:2:12,4); |
---|
40 | x5=x5+1; |
---|
41 | y5=y5+1; |
---|
42 | plot(x5(1),y5(1),'+') |
---|
43 | hold on; |
---|
44 | plot(x5(2),y5(2),'>') |
---|
45 | hold on; |
---|
46 | plot(x5(1:2),y5(1:2),'+'); |
---|
47 | hold on; |
---|
48 | plot(x5(1:2),y5(1:2),'-r') |
---|
49 | hold on; |
---|
50 | |
---|
51 | x7=obs_float_test (13:2:16,4); |
---|
52 | y7=obs_float_test (14:2:16,4); |
---|
53 | x7=x7+1; |
---|
54 | y7=y7+1; |
---|
55 | plot(x7(1),y7(1),'+') |
---|
56 | hold on; |
---|
57 | plot(x7(2),y7(2),'>') |
---|
58 | hold on; |
---|
59 | plot(x7(1:2),y7(1:2),'+'); |
---|
60 | hold on; |
---|
61 | plot(x7(1:2),y7(1:2),'-r') |
---|
62 | hold on; |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | load rfloat_total.dat |
---|
67 | rfloat_total(:,:) |
---|
68 | x2=rfloat_total(1:20,4); |
---|
69 | y2=rfloat_total(1:20,3); |
---|
70 | x2=x2+1; |
---|
71 | y2=y2+1; |
---|
72 | [k,h]=size(x2); |
---|
73 | plot(x2(2),y2(2),'+') |
---|
74 | hold on; |
---|
75 | plot(x2(k-1),y2(k-1),'>') |
---|
76 | hold on; |
---|
77 | plot(x2(2:k-1),y2(2:k-1),'+') |
---|
78 | hold on; |
---|
79 | plot(x2(2:k-1),y2(2:k-1),'-g') |
---|
80 | hold on; |
---|
81 | |
---|
82 | x4=rfloat_total(21:40,4); |
---|
83 | y4=rfloat_total(21:40,3); |
---|
84 | x4=x4+1; |
---|
85 | y4=y4+1; |
---|
86 | [k,h]=size(x4); |
---|
87 | plot(x4(2),y4(2),'+') |
---|
88 | hold on; |
---|
89 | plot(x4(k-1),y4(k-1),'>') |
---|
90 | hold on; |
---|
91 | plot(x4(2:k-1),y4(2:k-1),'+') |
---|
92 | hold on; |
---|
93 | plot(x4(2:k-1),y4(2:k-1),'-g') |
---|
94 | hold on; |
---|
95 | |
---|
96 | x6=rfloat_total(41:60,4); |
---|
97 | y6=rfloat_total(41:60,3); |
---|
98 | x6=x6+1; |
---|
99 | y6=y6+1; |
---|
100 | [k,h]=size(x6); |
---|
101 | plot(x6(2),y6(2),'+') |
---|
102 | hold on; |
---|
103 | plot(x6(k-1),y6(k-1),'>') |
---|
104 | hold on; |
---|
105 | plot(x6(2:k-1),y6(2:k-1),'+') |
---|
106 | hold on; |
---|
107 | plot(x6(2:k-1),y6(2:k-1),'-g') |
---|
108 | hold on; |
---|
109 | |
---|
110 | x8=rfloat_total(61:80,4); |
---|
111 | y8=rfloat_total(61:80,3); |
---|
112 | x8=x8+1; |
---|
113 | y8=y8+1; |
---|
114 | [k,h]=size(x8); |
---|
115 | plot(x8(2),y8(2),'+') |
---|
116 | hold on; |
---|
117 | plot(x8(k-1),y8(k-1),'>') |
---|
118 | hold on; |
---|
119 | plot(x8(2:k-1),y8(2:k-1),'+') |
---|
120 | hold on; |
---|
121 | plot(x8(2:k-1),y8(2:k-1),'-g') |
---|
122 | hold on; |
---|
123 | |
---|
124 | load uv_total.dat; |
---|
125 | whos; |
---|
126 | X1=uv_total(1:5046,end-3); |
---|
127 | Y1=uv_total(1:5046,end-2); |
---|
128 | X1=X1+1; |
---|
129 | Y1=Y1+1; |
---|
130 | %change si pas de temps change |
---|
131 | U1=zeros(5046,1); |
---|
132 | V1=zeros(5046,1); |
---|
133 | e=1; |
---|
134 | for r=1:1:19 |
---|
135 | |
---|
136 | for count=1:5046 |
---|
137 | Unew(count)=uv_total(e,end-1); |
---|
138 | Vnew(count)=uv_total(e,end); |
---|
139 | e=e+1; |
---|
140 | end |
---|
141 | U1=U1+Unew'; |
---|
142 | V1=V1+Vnew'; |
---|
143 | |
---|
144 | |
---|
145 | end |
---|
146 | |
---|
147 | U1=U1/19; |
---|
148 | V1=V1/19; |
---|
149 | quiver(X1,Y1,U1,V1,2,'r','Autoscale','off'); |
---|
150 | |
---|
151 | |
---|
152 | load utrue.dat; |
---|
153 | |
---|
154 | utrue=roundn(utrue,-6) |
---|
155 | whos; |
---|
156 | X3=utrue(:,end-2); |
---|
157 | Y3=utrue(:,end-1); |
---|
158 | U3=utrue(:,end); |
---|
159 | load vtrue.dat |
---|
160 | vtrue=roundn(vtrue,-6) |
---|
161 | V3=vtrue(:,end); |
---|
162 | quiver(X3,Y3,U3,V3,2,'b','Autoscale','off'); |
---|
163 | |
---|
164 | load uzero.dat; |
---|
165 | |
---|
166 | |
---|
167 | whos; |
---|
168 | X2=uzero(:,end-2); |
---|
169 | Y2=uzero(:,end-1); |
---|
170 | U2=uzero(:,end); |
---|
171 | load vzero.dat |
---|
172 | |
---|
173 | V2=vzero(:,end); |
---|
174 | quiver(X2,Y2,U2,V2,2,'g','Autoscale','off'); |
---|
175 | |
---|
176 | figure(2) |
---|
177 | load vel_bck_all.dat |
---|
178 | it=find(vel_bck_all(:,1)==1); |
---|
179 | Tu=reshape(vel_bck_all(it,4),58,87); |
---|
180 | Tv=reshape(vel_bck_all(it,5),58,87); |
---|
181 | |
---|
182 | load vel_true_all.dat |
---|
183 | it=find(vel_true_all(:,1)==1); |
---|
184 | Bu=reshape(vel_true_all(it,4),58,87); |
---|
185 | Bv=reshape(vel_true_all(it,5),58,87); |
---|
186 | |
---|
187 | F=(Bu-Tu).^2+(Bv-Tv).^2 |
---|
188 | sum=0; |
---|
189 | count=0; |
---|
190 | for r=70:77 |
---|
191 | for t=39:46 |
---|
192 | sum=sum+F(t,r); |
---|
193 | count=count+1; |
---|
194 | end |
---|
195 | end |
---|
196 | sum=sum/count |
---|
197 | |
---|
198 | imagesc(F) |
---|
199 | hold on |
---|
200 | whos; |
---|
201 | obs_float_test (1:4,:) |
---|
202 | x=obs_float_test (1:2:4,4); |
---|
203 | y=obs_float_test (2:2:4,4); |
---|
204 | x=x+1; |
---|
205 | y=y+1; |
---|
206 | plot(x(1),y(1),'+') |
---|
207 | hold on; |
---|
208 | plot(x(2),y(2),'>') |
---|
209 | hold on; |
---|
210 | plot(x(1:2),y(1:2),'+'); |
---|
211 | hold on; |
---|
212 | plot(x(1:2),y(1:2),'-r') |
---|
213 | hold on; |
---|
214 | |
---|
215 | |
---|
216 | x3=obs_float_test (5:2:8,4); |
---|
217 | y3=obs_float_test (6:2:8,4); |
---|
218 | x3=x3+1; |
---|
219 | y3=y3+1; |
---|
220 | plot(x3(1),y3(1),'+') |
---|
221 | hold on; |
---|
222 | plot(x3(2),y3(2),'>') |
---|
223 | hold on; |
---|
224 | plot(x3(1:2),y3(1:2),'+'); |
---|
225 | hold on; |
---|
226 | plot(x3(1:2),y3(1:2),'-r') |
---|
227 | hold on; |
---|
228 | |
---|
229 | x5=obs_float_test (9:2:12,4); |
---|
230 | y5=obs_float_test (10:2:12,4); |
---|
231 | x5=x5+1; |
---|
232 | y5=y5+1; |
---|
233 | plot(x5(1),y5(1),'+') |
---|
234 | hold on; |
---|
235 | plot(x5(2),y5(2),'>') |
---|
236 | hold on; |
---|
237 | plot(x5(1:2),y5(1:2),'+'); |
---|
238 | hold on; |
---|
239 | plot(x5(1:2),y5(1:2),'-r') |
---|
240 | hold on; |
---|
241 | |
---|
242 | x7=obs_float_test (13:2:16,4); |
---|
243 | y7=obs_float_test (14:2:16,4); |
---|
244 | x7=x7+1; |
---|
245 | y7=y7+1; |
---|
246 | plot(x7(1),y7(1),'+') |
---|
247 | hold on; |
---|
248 | plot(x7(2),y7(2),'>') |
---|
249 | hold on; |
---|
250 | plot(x7(1:2),y7(1:2),'+'); |
---|
251 | hold on; |
---|
252 | plot(x7(1:2),y7(1:2),'-r') |
---|
253 | hold on; |
---|
254 | |
---|
255 | figure(3) |
---|
256 | |
---|
257 | load uv_total.dat |
---|
258 | it=find(uv_total(:,1)==0); |
---|
259 | Iu0=reshape(uv_total(it,4),58,87); |
---|
260 | Iv0=reshape(uv_total(it,5),58,87); |
---|
261 | it=find(uv_total(:,1)==1); |
---|
262 | Iu1=reshape(uv_total(it,4),58,87); |
---|
263 | Iv1=reshape(uv_total(it,5),58,87); |
---|
264 | it=find(uv_total(:,1)==2); |
---|
265 | Iu2=reshape(uv_total(it,4),58,87); |
---|
266 | Iv2=reshape(uv_total(it,5),58,87); |
---|
267 | it=find(uv_total(:,1)==3); |
---|
268 | Iu3=reshape(uv_total(it,4),58,87); |
---|
269 | Iv3=reshape(uv_total(it,5),58,87); |
---|
270 | it=find(uv_total(:,1)==4); |
---|
271 | Iu4=reshape(uv_total(it,4),58,87); |
---|
272 | Iv4=reshape(uv_total(it,5),58,87); |
---|
273 | it=find(uv_total(:,1)==5); |
---|
274 | Iu5=reshape(uv_total(it,4),58,87); |
---|
275 | Iv5=reshape(uv_total(it,5),58,87); |
---|
276 | it=find(uv_total(:,1)==6); |
---|
277 | Iu6=reshape(uv_total(it,4),58,87); |
---|
278 | Iv6=reshape(uv_total(it,5),58,87); |
---|
279 | it=find(uv_total(:,1)==7); |
---|
280 | Iu7=reshape(uv_total(it,4),58,87); |
---|
281 | Iv7=reshape(uv_total(it,5),58,87); |
---|
282 | it=find(uv_total(:,1)==8); |
---|
283 | Iu8=reshape(uv_total(it,4),58,87); |
---|
284 | Iv8=reshape(uv_total(it,5),58,87); |
---|
285 | it=find(uv_total(:,1)==9); |
---|
286 | Iu9=reshape(uv_total(it,4),58,87); |
---|
287 | Iv9=reshape(uv_total(it,5),58,87); |
---|
288 | it=find(uv_total(:,1)==10); |
---|
289 | Iu10=reshape(uv_total(it,4),58,87); |
---|
290 | Iv10=reshape(uv_total(it,5),58,87); |
---|
291 | it=find(uv_total(:,1)==11); |
---|
292 | Iu11=reshape(uv_total(it,4),58,87); |
---|
293 | Iv11=reshape(uv_total(it,5),58,87); |
---|
294 | it=find(uv_total(:,1)==12); |
---|
295 | Iu12=reshape(uv_total(it,4),58,87); |
---|
296 | Iv12=reshape(uv_total(it,5),58,87); |
---|
297 | it=find(uv_total(:,1)==13); |
---|
298 | Iu13=reshape(uv_total(it,4),58,87); |
---|
299 | Iv13=reshape(uv_total(it,5),58,87); |
---|
300 | it=find(uv_total(:,1)==14); |
---|
301 | Iu14=reshape(uv_total(it,4),58,87); |
---|
302 | Iv14=reshape(uv_total(it,5),58,87); |
---|
303 | it=find(uv_total(:,1)==15); |
---|
304 | Iu15=reshape(uv_total(it,4),58,87); |
---|
305 | Iv15=reshape(uv_total(it,5),58,87); |
---|
306 | it=find(uv_total(:,1)==16); |
---|
307 | Iu16=reshape(uv_total(it,4),58,87); |
---|
308 | Iv16=reshape(uv_total(it,5),58,87); |
---|
309 | it=find(uv_total(:,1)==17); |
---|
310 | Iu17=reshape(uv_total(it,4),58,87); |
---|
311 | Iv17=reshape(uv_total(it,5),58,87); |
---|
312 | it=find(uv_total(:,1)==18) |
---|
313 | Iu18=reshape(uv_total(it,4),58,87); |
---|
314 | Iv18=reshape(uv_total(it,5),58,87); |
---|
315 | it=find(uv_total(:,1)==19) |
---|
316 | Iu19=reshape(uv_total(it,4),58,87); |
---|
317 | Iv19=reshape(uv_total(it,5),58,87); |
---|
318 | % it=find(uv_total(:,1)==20); |
---|
319 | % I20=reshape(uv_total(it,4),58,87); |
---|
320 | % it=find(uv_total(:,1)==21); |
---|
321 | % I21=reshape(uv_total(it,4),58,87); |
---|
322 | % it=find(uv_total(:,1)==22); |
---|
323 | % I22=reshape(uv_total(it,4),58,87); |
---|
324 | % it=find(uv_total(:,1)==23); |
---|
325 | % I23=reshape(uv_total(it,4),58,87); |
---|
326 | % it=find(uv_total(:,1)==24); |
---|
327 | % I24=reshape(uv_total(it,4),58,87); |
---|
328 | % it=find(uv_total(:,1)==25); |
---|
329 | % I25=reshape(uv_total(it,4),58,87); |
---|
330 | % it=find(uv_total(:,1)==26); |
---|
331 | % I26=reshape(uv_total(it,4),58,87); |
---|
332 | % it=find(uv_total(:,1)==27); |
---|
333 | % I27=reshape(uv_total(it,4),58,87); |
---|
334 | % it=find(uv_total(:,1)==28); |
---|
335 | % I28=reshape(uv_total(it,4),58,87); |
---|
336 | % it=find(uv_total(:,1)==29); |
---|
337 | % I29=reshape(uv_total(it,4),58,87); |
---|
338 | % it=find(uv_total(:,1)==30); |
---|
339 | % I30=reshape(uv_total(it,4),58,87); |
---|
340 | % it=find(uv_total(:,1)==31); |
---|
341 | % I31=reshape(uv_total(it,4),58,87); |
---|
342 | % it=find(uv_total(:,1)==32); |
---|
343 | % I32=reshape(uv_total(it,4),58,87); |
---|
344 | % it=find(uv_total(:,1)==33); |
---|
345 | % I33=reshape(uv_total(it,4),58,87); |
---|
346 | % it=find(uv_total(:,1)==34); |
---|
347 | % I34=reshape(uv_total(it,4),58,87); |
---|
348 | % it=find(uv_total(:,1)==35); |
---|
349 | % I35=reshape(uv_total(it,4),58,87); |
---|
350 | % it=find(uv_total(:,1)==36); |
---|
351 | % I36=reshape(uv_total(it,4),58,87); |
---|
352 | |
---|
353 | Cu=(Iu0+Iu1+Iu2+Iu3+Iu4+Iu5+Iu6+Iu7+Iu8+Iu9+Iu10+Iu11+Iu12+Iu13+Iu14+Iu15+Iu16+Iu17+Iu18+Iu19)/20; |
---|
354 | Cv=(Iv0+Iv1+Iv2+Iv3+Iv4+Iv5+Iv6+Iv7+Iv8+Iv9+Iv10+Iv11+Iv12+Iv13+Iv14+Iv15+Iv16+Iv17+Iv18+Iv19)/20; |
---|
355 | |
---|
356 | F1=(Tu-Cu).^2+(Tv-Cv).^2; |
---|
357 | imagesc(F1) |
---|
358 | sum3=0; |
---|
359 | count3=0; |
---|
360 | for r=70:77 |
---|
361 | for t=39:46 |
---|
362 | sum3=sum3+F1(t,r); |
---|
363 | count3=count3+1; |
---|
364 | end |
---|
365 | end |
---|
366 | sum3=sum3/count3 |
---|
367 | hold on |
---|
368 | whos; |
---|
369 | obs_float_test (1:4,:) |
---|
370 | x=obs_float_test (1:2:4,4); |
---|
371 | y=obs_float_test (2:2:4,4); |
---|
372 | x=x+1; |
---|
373 | y=y+1; |
---|
374 | plot(x(1),y(1),'+') |
---|
375 | hold on; |
---|
376 | plot(x(2),y(2),'>') |
---|
377 | hold on; |
---|
378 | plot(x(1:2),y(1:2),'+'); |
---|
379 | hold on; |
---|
380 | plot(x(1:2),y(1:2),'-r') |
---|
381 | hold on; |
---|
382 | |
---|
383 | |
---|
384 | x3=obs_float_test (5:2:8,4); |
---|
385 | y3=obs_float_test (6:2:8,4); |
---|
386 | x3=x3+1; |
---|
387 | y3=y3+1; |
---|
388 | plot(x3(1),y3(1),'+') |
---|
389 | hold on; |
---|
390 | plot(x3(2),y3(2),'>') |
---|
391 | hold on; |
---|
392 | plot(x3(1:2),y3(1:2),'+'); |
---|
393 | hold on; |
---|
394 | plot(x3(1:2),y3(1:2),'-r') |
---|
395 | hold on; |
---|
396 | |
---|
397 | x5=obs_float_test (9:2:12,4); |
---|
398 | y5=obs_float_test (10:2:12,4); |
---|
399 | x5=x5+1; |
---|
400 | y5=y5+1; |
---|
401 | plot(x5(1),y5(1),'+') |
---|
402 | hold on; |
---|
403 | plot(x5(2),y5(2),'>') |
---|
404 | hold on; |
---|
405 | plot(x5(1:2),y5(1:2),'+'); |
---|
406 | hold on; |
---|
407 | plot(x5(1:2),y5(1:2),'-r') |
---|
408 | hold on; |
---|
409 | |
---|
410 | x7=obs_float_test (13:2:16,4); |
---|
411 | y7=obs_float_test (14:2:16,4); |
---|
412 | x7=x7+1; |
---|
413 | y7=y7+1; |
---|
414 | plot(x7(1),y7(1),'+') |
---|
415 | hold on; |
---|
416 | plot(x7(2),y7(2),'>') |
---|
417 | hold on; |
---|
418 | plot(x7(1:2),y7(1:2),'+'); |
---|
419 | hold on; |
---|
420 | plot(x7(1:2),y7(1:2),'-r') |
---|
421 | hold on; |
---|
422 | |
---|
423 | F2=(Bu-Cu).^2+(Bv-Cv).^2; |
---|
424 | |
---|
425 | figure(4) |
---|
426 | imagesc(F2) |
---|
427 | hold on |
---|
428 | whos; |
---|
429 | obs_float_test (1:4,:) |
---|
430 | x=obs_float_test (1:2:4,4); |
---|
431 | y=obs_float_test (2:2:4,4); |
---|
432 | x=x+1; |
---|
433 | y=y+1; |
---|
434 | plot(x(1),y(1),'+') |
---|
435 | hold on; |
---|
436 | plot(x(2),y(2),'>') |
---|
437 | hold on; |
---|
438 | plot(x(1:2),y(1:2),'+'); |
---|
439 | hold on; |
---|
440 | plot(x(1:2),y(1:2),'-r') |
---|
441 | hold on; |
---|
442 | |
---|
443 | |
---|
444 | x3=obs_float_test (5:2:8,4); |
---|
445 | y3=obs_float_test (6:2:8,4); |
---|
446 | x3=x3+1; |
---|
447 | y3=y3+1; |
---|
448 | plot(x3(1),y3(1),'+') |
---|
449 | hold on; |
---|
450 | plot(x3(2),y3(2),'>') |
---|
451 | hold on; |
---|
452 | plot(x3(1:2),y3(1:2),'+'); |
---|
453 | hold on; |
---|
454 | plot(x3(1:2),y3(1:2),'-r') |
---|
455 | hold on; |
---|
456 | |
---|
457 | x5=obs_float_test (9:2:12,4); |
---|
458 | y5=obs_float_test (10:2:12,4); |
---|
459 | x5=x5+1; |
---|
460 | y5=y5+1; |
---|
461 | plot(x5(1),y5(1),'+') |
---|
462 | hold on; |
---|
463 | plot(x5(2),y5(2),'>') |
---|
464 | hold on; |
---|
465 | plot(x5(1:2),y5(1:2),'+'); |
---|
466 | hold on; |
---|
467 | plot(x5(1:2),y5(1:2),'-r') |
---|
468 | hold on; |
---|
469 | |
---|
470 | x7=obs_float_test (13:2:16,4); |
---|
471 | y7=obs_float_test (14:2:16,4); |
---|
472 | x7=x7+1; |
---|
473 | y7=y7+1; |
---|
474 | plot(x7(1),y7(1),'+') |
---|
475 | hold on; |
---|
476 | plot(x7(2),y7(2),'>') |
---|
477 | hold on; |
---|
478 | plot(x7(1:2),y7(1:2),'+'); |
---|
479 | hold on; |
---|
480 | plot(x7(1:2),y7(1:2),'-r') |
---|
481 | hold on; |
---|
482 | |
---|
483 | |
---|
484 | |
---|
485 | figure (5) |
---|
486 | imagesc(F) |
---|
487 | axis([70 77 38 46]) |
---|
488 | hold on |
---|
489 | whos; |
---|
490 | obs_float_test (1:4,:) |
---|
491 | x=obs_float_test (1:2:4,4); |
---|
492 | y=obs_float_test (2:2:4,4); |
---|
493 | x=x+1; |
---|
494 | y=y+1; |
---|
495 | plot(x(1),y(1),'+') |
---|
496 | hold on; |
---|
497 | plot(x(2),y(2),'>') |
---|
498 | hold on; |
---|
499 | plot(x(1:2),y(1:2),'+'); |
---|
500 | hold on; |
---|
501 | plot(x(1:2),y(1:2),'-r') |
---|
502 | hold on; |
---|
503 | |
---|
504 | |
---|
505 | x3=obs_float_test (5:2:8,4); |
---|
506 | y3=obs_float_test (6:2:8,4); |
---|
507 | x3=x3+1; |
---|
508 | y3=y3+1; |
---|
509 | plot(x3(1),y3(1),'+') |
---|
510 | hold on; |
---|
511 | plot(x3(2),y3(2),'>') |
---|
512 | hold on; |
---|
513 | plot(x3(1:2),y3(1:2),'+'); |
---|
514 | hold on; |
---|
515 | plot(x3(1:2),y3(1:2),'-r') |
---|
516 | hold on; |
---|
517 | |
---|
518 | x5=obs_float_test (9:2:12,4); |
---|
519 | y5=obs_float_test (10:2:12,4); |
---|
520 | x5=x5+1; |
---|
521 | y5=y5+1; |
---|
522 | plot(x5(1),y5(1),'+') |
---|
523 | hold on; |
---|
524 | plot(x5(2),y5(2),'>') |
---|
525 | hold on; |
---|
526 | plot(x5(1:2),y5(1:2),'+'); |
---|
527 | hold on; |
---|
528 | plot(x5(1:2),y5(1:2),'-r') |
---|
529 | hold on; |
---|
530 | |
---|
531 | x7=obs_float_test (13:2:16,4); |
---|
532 | y7=obs_float_test (14:2:16,4); |
---|
533 | x7=x7+1; |
---|
534 | y7=y7+1; |
---|
535 | plot(x7(1),y7(1),'+') |
---|
536 | hold on; |
---|
537 | plot(x7(2),y7(2),'>') |
---|
538 | hold on; |
---|
539 | plot(x7(1:2),y7(1:2),'+'); |
---|
540 | hold on; |
---|
541 | plot(x7(1:2),y7(1:2),'-r') |
---|
542 | hold on; |
---|
543 | |
---|
544 | figure (6) |
---|
545 | imagesc(F1) |
---|
546 | |
---|
547 | axis([70 77 38 46]) |
---|
548 | hold on |
---|
549 | whos; |
---|
550 | obs_float_test (1:4,:) |
---|
551 | x=obs_float_test (1:2:4,4); |
---|
552 | y=obs_float_test (2:2:4,4); |
---|
553 | x=x+1; |
---|
554 | y=y+1; |
---|
555 | plot(x(1),y(1),'+') |
---|
556 | hold on; |
---|
557 | plot(x(2),y(2),'>') |
---|
558 | hold on; |
---|
559 | plot(x(1:2),y(1:2),'+'); |
---|
560 | hold on; |
---|
561 | plot(x(1:2),y(1:2),'-r') |
---|
562 | hold on; |
---|
563 | |
---|
564 | |
---|
565 | x3=obs_float_test (5:2:8,4); |
---|
566 | y3=obs_float_test (6:2:8,4); |
---|
567 | x3=x3+1; |
---|
568 | y3=y3+1; |
---|
569 | plot(x3(1),y3(1),'+') |
---|
570 | hold on; |
---|
571 | plot(x3(2),y3(2),'>') |
---|
572 | hold on; |
---|
573 | plot(x3(1:2),y3(1:2),'+'); |
---|
574 | hold on; |
---|
575 | plot(x3(1:2),y3(1:2),'-r') |
---|
576 | hold on; |
---|
577 | |
---|
578 | x5=obs_float_test (9:2:12,4); |
---|
579 | y5=obs_float_test (10:2:12,4); |
---|
580 | x5=x5+1; |
---|
581 | y5=y5+1; |
---|
582 | plot(x5(1),y5(1),'+') |
---|
583 | hold on; |
---|
584 | plot(x5(2),y5(2),'>') |
---|
585 | hold on; |
---|
586 | plot(x5(1:2),y5(1:2),'+'); |
---|
587 | hold on; |
---|
588 | plot(x5(1:2),y5(1:2),'-r') |
---|
589 | hold on; |
---|
590 | |
---|
591 | x7=obs_float_test (13:2:16,4); |
---|
592 | y7=obs_float_test (14:2:16,4); |
---|
593 | x7=x7+1; |
---|
594 | y7=y7+1; |
---|
595 | plot(x7(1),y7(1),'+') |
---|
596 | hold on; |
---|
597 | plot(x7(2),y7(2),'>') |
---|
598 | hold on; |
---|
599 | plot(x7(1:2),y7(1:2),'+'); |
---|
600 | hold on; |
---|
601 | plot(x7(1:2),y7(1:2),'-r') |
---|
602 | hold on; |
---|
603 | |
---|
604 | sum=sqrt(sum/count); |
---|
605 | sum3=sqrt(sum3/count3); |
---|
606 | errorbefore=sum |
---|
607 | errorafter=sum3 |
---|