UNIVERSITE KASDI MERBAH DE OUARGLA FACULTE DES HYDROCARBURES, DES ENERGIES RENO

UNIVERSITE KASDI MERBAH DE OUARGLA FACULTE DES HYDROCARBURES, DES ENERGIES RENOUVELABLES, DES SCIENCES DE LA TERRE ET DE L'UNIVERS Niveau : 2eme Aca/ 3eme Pro - Production TP 01 - 01 Introduction à Matlab 2020/2021 Résumé Le présent document a pour but de fournir les bases nécessaires à l’utilisation du logiciel MATLAB, MATLAB est une abréviation de MATrix LABoratory, et comme son nom l'indique, toutes les entités (ou variables) manipulées sont des matrices. MATLAB écrit à l’origine, en Fortran, La version actuelle, écrite en C par The MathWorks Inc, Le logiciel MATLAB est spécialisé dans le domaine du calcul matriciel numérique. Le but de ce TP est de s'initier au MATLAB. Exercice 1.1 Ecrire les commandes suivantes dans la fenêtre de commandes (command window) et expliquer les résultats obtenus : Commande Explication commande Explication commande Explication intro help demo info helpwin help nom lookfor nom pwd cd rep dir delete pi eps inf NaN who whos what clear clear var1 … varn save nomfichier var1 … varn save nomfichier load nom-f exit sqrt(a) exp(a) log(a) sin(a) cos(a) tan(a) round(a) floor(a) ceil(a) abs(a) Exercice 1.2 1. Tapez la commande a= 1:7; Tapez les commandes a, who et whos. 2. Utilisez  (flèche vers le haut du clavier) pour modifier a : a= 1:2; 3. Tapez la commande b= a+2; Ré exécutez les commandes who et whos en utilisant , Tapez clear et b. 4. Tapez la commande h= 0:pi/40:pi, Tapez sin(h), après tapez plot(h,sin(h)) 5. Tapez et expliquez les commandes suivantes : a. >> t= 1+1 b. >> u= sin(t) c. >> v= exp(u) d. >> format long e. >> v f. >> format short g. >> v uploads/Industriel/ tp-01-01.pdf

  • 43
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager