FACULTE DES SCIECES ET DES SCIENCES APPLIQUEES DEPARTEMENT DE GENIE ÉLECTRIQUE
FACULTE DES SCIECES ET DES SCIENCES APPLIQUEES DEPARTEMENT DE GENIE ÉLECTRIQUE ANNEE UNIVERSITAIRE 2019-2020 TP N°2 Voici le programme matlab suivant : clc; clear; Q1=8e-9; Q2=8e-9; pL=2e-9; Epsilono=8.8419e-12; P=[2 3 4]; A=[0 0 1]; B=[0 0 -1]; C=[2 0 0]; Number_of_L_Steps=100000; R1=P-A; R2=P-B; R1Mag=norm(R1); R2Mag=norm(R2); E1=Q1/(4*pi*Epsilono*R1Mag^3)*R1; E2=Q2/(4*pi*Epsilono*R2Mag^3)*R2; d=norm(P-C); length=100*d; dL_V=length/Number_of_L_Steps*[1 0 0]; dL=norm(dL_V); EL=[0 0 0]; C_segment=C-(Number_of_L_Steps/2*dL_V-dL_V/2); for i=1: Number_of_L_Steps R=P-C_segment; RMag=norm(R); EL=EL+dL*pL/(4*pi*Epsilono*RMag^3)*R; C_segment=C_segment+dL_V; end E=E1+E2+EL; Questions : 1. Réécrivez ce programme dans un fichier Matlab, puis expliquez chaque ligne à l'aide d'un commentaire. 2. Que fait ce programme ? 3. Exécuter et donner le résultat final obtenu. 4. Que fait la fonction "quiver3" ? Appliquez cette fonction à E. uploads/Litterature/ tp2-2019-2020.pdf
Documents similaires










-
35
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Jui 28, 2022
- Catégorie Literature / Litté...
- Langue French
- Taille du fichier 0.0786MB