resolution d'un system sous MATLAB
Répondre à la discussion
Affichage des résultats 1 à 2 sur 2

resolution d'un system sous MATLAB



  1. #1
    ABN84

    resolution d'un system sous MATLAB


    ------

    bonjour,
    j'essaie depuis tout à l'heure de resoudre ce systeme:
    Code:
    >> clear, syms theta1 theta2 theta3 theta4 theta5 theta6
    >> eq1='-sin(alphay) = sin(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+sin(theta5)*sin(theta1)*sin(theta4)+cos(theta1)*sin(theta2+theta3)*cos(theta5)'
    eq2='cos(alphaz) = (cos(theta6)*cos(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+cos(theta6)*cos(theta5)*sin(theta1)*sin(theta4)-cos(theta6)*cos(theta1)*sin(theta2+theta3)*sin(theta5)+sin(theta6)*cos(theta1)*cos(theta2+theta3)*sin(theta4)-sin(theta6)*sin(theta1)*cos(theta4))/cos(alphay)'
    eq3='cos(alphax) = (-sin(theta2+theta3)*cos(theta4)*sin(theta5)+cos(theta2+theta3)*cos(theta5))/cos(alphay)'
    eq4='x = 249*sin(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+249*sin(theta5)*sin(theta1)*sin(theta4)+249*cos(theta1)*sin(theta2+theta3)*cos(theta5)-1057*cos(theta1)*sin(theta2+theta3)+165*cos(theta1)*cos(theta2+theta3)+1075*cos(theta1)*cos(theta2)+410*cos(theta1)'
    eq5='y = 249*sin(theta5)*sin(theta1)*cos(theta2+theta3)*cos(theta4)-249*sin(theta5)*cos(theta1)*sin(theta4)+249*sin(theta1)*sin(theta2+theta3)*cos(theta5)-1057*sin(theta1)*sin(theta2+theta3)+165*sin(theta1)*cos(theta2+theta3)+1075*sin(theta1)*cos(theta2)+410*sin(theta1)'
    eq6='z = 775-249*sin(theta2+theta3)*cos(theta4)*sin(theta5)+249*cos(theta2+theta3)*cos(theta5)-1057*cos(theta2+theta3)-165*sin(theta2+theta3)-1075*sin(theta2)'
    
    eq1 =
    
    -sin(alphay) = sin(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+sin(theta5)*sin(theta1)*sin(theta4)+cos(theta1)*sin(theta2+theta3)*cos(theta5)
    
    
    eq2 =
    
    cos(alphaz) = (cos(theta6)*cos(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+cos(theta6)*cos(theta5)*sin(theta1)*sin(theta4)-cos(theta6)*cos(theta1)*sin(theta2+theta3)*sin(theta5)+sin(theta6)*cos(theta1)*cos(theta2+theta3)*sin(theta4)-sin(theta6)*sin(theta1)*cos(theta4))/cos(alphay)
    
    
    eq3 =
    
    cos(alphax) = (-sin(theta2+theta3)*cos(theta4)*sin(theta5)+cos(theta2+theta3)*cos(theta5))/cos(alphay)
    
    
    eq4 =
    
    x = 249*sin(theta5)*cos(theta1)*cos(theta2+theta3)*cos(theta4)+249*sin(theta5)*sin(theta1)*sin(theta4)+249*cos(theta1)*sin(theta2+theta3)*cos(theta5)-1057*cos(theta1)*sin(theta2+theta3)+165*cos(theta1)*cos(theta2+theta3)+1075*cos(theta1)*cos(theta2)+410*cos(theta1)
    
    
    eq5 =
    
    y = 249*sin(theta5)*sin(theta1)*cos(theta2+theta3)*cos(theta4)-249*sin(theta5)*cos(theta1)*sin(theta4)+249*sin(theta1)*sin(theta2+theta3)*cos(theta5)-1057*sin(theta1)*sin(theta2+theta3)+165*sin(theta1)*cos(theta2+theta3)+1075*sin(theta1)*cos(theta2)+410*sin(theta1)
    
    
    eq6 =
    
    z = 775-249*sin(theta2+theta3)*cos(theta4)*sin(theta5)+249*cos(theta2+theta3)*cos(theta5)-1057*cos(theta2+theta3)-165*sin(theta2+theta3)-1075*sin(theta2)
    
    >> [theta1 theta2 theta3 theta4 theta5 theta6]=solve(eq1,eq2,eq3,eq4,eq5,eq6,theta1,theta2,theta3,theta4,theta5,theta6)
    le probleme est que MATLAB calcule pendant pres d'une heure sans donner aucun resultat, je suppose donc que le systeme est trop complexe. comment pourrais-je m'y prendre pour le resoudre alors?
    merci

    -----
    "Engineering is the art of making what you want from what you get"

  2. #2
    ABN84

    Re : resolution d'un system sous MATLAB

    bonsoir,
    ce que je cherche c'est avoir l'expression des theta1-6 en fonction des alphax, alphay, alphaz, x, y, et z.
    qqun aurait-il une petite idée sur comment s'y prendre?
    merci
    "Engineering is the art of making what you want from what you get"

Discussions similaires

  1. résolution d'équations différentielles sous matlab
    Par invitec768813d dans le forum Logiciel - Software - Open Source
    Réponses: 12
    Dernier message: 06/05/2009, 20h22
  2. Résolution algébrique d'un système d'équations sous Matlab
    Par invite6f2024cf dans le forum Mathématiques du supérieur
    Réponses: 6
    Dernier message: 22/10/2007, 10h45
  3. Résolution d'une équation sous Matlab
    Par invite4621550e dans le forum Logiciel - Software - Open Source
    Réponses: 2
    Dernier message: 07/05/2007, 16h38
  4. résolution d'un exercice de probabilité sous le logiciel R
    Par invite0b60202e dans le forum Mathématiques du supérieur
    Réponses: 6
    Dernier message: 17/04/2007, 11h23
  5. Résolution d'équation sous matlab (pivot de Gauss)
    Par invite29f9ce05 dans le forum Mathématiques du supérieur
    Réponses: 1
    Dernier message: 07/11/2006, 16h50