how do you use sin in matlab?
Mostrar comentarios más antiguos
like for example I will input sin 30
when I do this I get an error: ??? Undefined function or variable 'sin30'.
sin is a function right? I do not need to put a value for it but why do I still get this error.? help me guys please...
Respuesta aceptada
Más respuestas (1)
Daniel Shub
el 14 de Ag. de 2011
You need parentheses. For example:
sin(30)
Although you probably want
sin(30*pi/180)
since sin expects its argument to be in radians.
1 comentario
John D'Errico
el 14 de Ag. de 2011
MATLAB has sind for those who insist on degrees.
Categorías
Más información sobre Creating and Concatenating Matrices 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!