
Undefined function or method 'vector_v0' for input arguments of type 'double'
Publicado por Tamara (2 intervenciones) el 02/06/2014 23:33:04
Hola a todos. Me acabo de crear esta cuenta, ya que tengo un problema con una función muy simple y no entiendo por qué. La función es la siguiente:
El error que tira es: Undefined function or method 'vector_v0' for input arguments of type 'double'.
Le agradecería mucho a los que me dieran una respuesta :)
1
2
3
4
5
6
function [v0x,v0y]=vector_v0(Proyectil)
angulo=Proyectil(4);
velocidad=Proyectil(3);
radianes=(angulo.*pi)./180;
v0x=velocidad.*cos(radianes);
v0y=velocidad.*sin(radianes);
El error que tira es: Undefined function or method 'vector_v0' for input arguments of type 'double'.
Le agradecería mucho a los que me dieran una respuesta :)
Valora esta pregunta


0