1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
clearvars;close all;clc;
filename = 'INPUT_Example1.txt';
rng(1); % to ensure reprodu
[u,v,w,t,nodes] = windSim(filename);
%Affichage données
figure
subplot(311)
box on
axis tight
plot(t(1:600),u(1:1,1:600)+nodes.U(1:1)*ones(1,600));
xlabel('Temps (s) ');
ylabel('u (km/h)')
set(gcf,'color','w')
legend('sample 1','sample 2','sample 3');
subplot(312)
box on
axis tight
plot(t(1:600),v(1:1,1:600))
xlabel('time (s) ');
ylabel('v (m/s)')
set(gcf,'color','w')
a=50;
b=ones(1,a);
y=filter(b,a,v);
plot(y); |
Partager