Académique Documents
Professionnel Documents
Culture Documents
UNIVERSITE DE LUBUMBASHI
FACULTE POLYTECHNIQUE
TRAVAIL PRATIQUE
DELOGICIEL DE
SIMULATION : ETUDE DE
LA COURBE DU CHAT
AVEC MATLAB
Présenté par : MULANGU KAWAYA Vainqueur
Groupe : 10
BAC 3 ELECTROMECANIQUE
2 pour y= 1. / (1+x. ˄ 2) ;
3 plot (x, y)
t = linspace(0,2*pi);
x = width/2*sin(t)+ nose_pos(1);
y = height/2*sin(t) + nose_pos(2);
plot(x,y,'k','LineWidth',2);
hold on;
eye_pos = [0.3, 0.7;0.7,0.7];
eye_radius = 0.1;
for i = 1:2
theta = linspace(0,2*pi);
x_eye = eye_radius*cos(theta) + eye_pos(i,1);
y_eye = eye_radius*sin(theta) + eye_pos(i,2);
plot(x_eye, y_eye, 'k','LineWidth',2);
end
whisker_pos = [0.2,0.5;0.8,0.5];
whisker_length = 0.4;
whisker_angle = [pi/6,-pi/6;pi/6,-pi/6];
for i = 1:2
theta = linspace(whisker_angle(1,i), whisker_angle(2,i));
x_whisker = whisker_length*cos(theta) + whisker_pos(i,1);
y_whisker = whisker_length*sin(theta) + whisker_pos(i,2);
plot(x_whisker, y_whisker,'k','LineWidth',2);
end
ear_pos = [0.2,0.8;0.8,0.8];
ear_size = [0.3,0.3];
for i=1:2
theta = linspace(-pi/4,pi/4);
x_ear = ear_size(i)*cos(theta) + ear_pos(i,1);
y_ear = ear_size(i)*sin(theta) + ear_pos(i,2);
plot(x_ear, y_ear, 'k', 'LineWidth', 2);
end
% Enregistrer l'image
saveas(gcf,'courbe_chat.png');
4. PRESENTATION DES RESULTATS OBTENUS
5.REFERENCES BIBLIOGRAPHIQUES