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

4 visualizaciones (últimos 30 días)
Hui Zhang
Hui Zhang el 1 de Sept. de 2017
Comentada: Hui Zhang el 5 de Sept. de 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!

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Sept. de 2017
Editada: Walter Roberson el 4 de Sept. de 2017
Use ./ instead of /
Also, use
x = linspace(0,1);

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by