source: altifloat/matlab_toolbox/essai.m @ 199

Last change on this file since 199 was 129, checked in by jbrlod, 10 years ago

last version of Varanth

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1clear all;close all;clc;
2
3%% Chargement obs.
4load ../obs_float/init.dat;
5load ../obs_float/obs.dat
6
7fname='25float-filtre15-inc';
8
9%figure(1)
10%clf
11%plot(init(1,end)+1,init(2,end)+1,'k+');
12%hold on
13%plot(obs(1,end)+1,obs(2,end)+1,'*r');
14
15%% Chargement des trajectoires
16 figure(1)
17    clf
18for j=1:6
19    ind=round(linspace(1,16,6));
20    subplot(3,2,j)
21    plot(init(1,end)+1,init(2,end)+1,'k+');
22hold on
23plot(obs(1,end)+1,obs(2,end)+1,'*r');
24r_float=load(['../obs_float/r_float_optim' fname '_' int2str(ind(j)) '.dat']);
25uoptim=load(['../obs_float/uoptim' fname int2str(ind(j)) '.dat']);
26voptim=load(['../obs_float/voptim' fname int2str(ind(j)) '.dat']);
27plot(r_float(1:2:end,end)+1,r_float(2:2:end,end)+1,'-b');
28plot(r_float(3:2:end-3,end)+1,r_float(4:2:end-2,end)+1,'ob');
29
30plot(r_float(1,end)+1,r_float(2,end)+1,'+k');
31plot(r_float(end-1,end)+1,r_float(end,end)+1,'*b');
32quiver(uoptim(:,end-2),uoptim(:,end-1),uoptim(:,end),voptim(:,end),'k');
33axis([6 15 13 22]);
34plot(obs(1,end)+1,obs(2,end)+1,'*r');
35title([' extern loop number ' int2str(ind(j))]);
36grid on
37end
Note: See TracBrowser for help on using the repository browser.