I can't make A<B, it gives me 'lt' error
Mostrar comentarios más antiguos
Hello! I am trying to make a loop with for inside a for, inside another for, but Matlab gives me this error:
Undefined function or method 'lt' for input arguments of type 'sym'
I've heard it's something about 'less than'.
I tried the program yesterday and it 'worked' (it run the program but my computer is very slow so I cancelled it before it ended, but it worked), but now I am doing the same and it gives me the error.
My loop is that:
for q1=(-185:10:185)*pi/180
for q2=(-135:10:35)*pi/180
for q3=(-120:10:158)*pi/180
J=jacobiana(q1,q2,q3,0,0,0);
D=det(J);
if abs(D)<0.05
P=tcd([q1,q2,q3,0,0,0]);
G=P*[0 0 0 1]';
x(i)=G(1);
y(i)=G(2);
z(i)=G(3);
i=i+1;
end
end
end
end
5 comentarios
Azzi Abdelmalek
el 22 de Abr. de 2013
The error message concerns lt and there is no any lt in your code!
María
el 22 de Abr. de 2013
Azzi Abdelmalek
el 22 de Abr. de 2013
Editada: Azzi Abdelmalek
el 22 de Abr. de 2013
What do you mean?
Walter Roberson
el 22 de Abr. de 2013
The "<" operator is implemented by a function named "lt".
Azzi Abdelmalek
el 22 de Abr. de 2013
Ok I see
Respuesta aceptada
Más respuestas (1)
Matt Kindig
el 22 de Abr. de 2013
0 votos
Hmmm...I don't see any 'sym' variables here. What is the class() of J and P?
3 comentarios
María
el 22 de Abr. de 2013
Matt Kindig
el 22 de Abr. de 2013
And to confirm, D is a 1x1 double matrix?
María
el 22 de Abr. de 2013
Categorías
Más información sobre Code Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!