Warning: Rank deficient, rank = 0, tol = NaN.

4 vues (au cours des 30 derniers jours)
Hui Zhang
Hui Zhang le 1 Sep 2017
Commenté : Hui Zhang le 5 Sep 2017
I write a program to show joint angles of a manipulator. But here is a warning. here is my code:
x = 0:1;
y = -x+2;
a = 1;
D = (x.^2+y.^2-a-a)/2.*a.^2;
th2 = tan((1-D.^2).^(1/2)./D).^(-1);
th1 = tan(y/x).^(-1)-tan(a.*sin(th2)/(a+a.*cos(th2))).^(-1);
plot(x,th2);
hold on;
plot(x,th1);
Thank you very much!

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Sep 2017
Modifié(e) : Walter Roberson le 4 Sep 2017
Use ./ instead of /
Also, use
x = linspace(0,1);
  1 commentaire
Hui Zhang
Hui Zhang le 5 Sep 2017
Thank you very much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by