Error using odearguments???
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Richard
      
 el 28 de Mzo. de 2012
  
    
    
    
    
    Respondida: shobhit kumar
 el 25 de Dic. de 2013
            What does this error message mean?
 ??? Error using ==> odearguments at 120
  Inputs must be floats, namely single or double.
Error in ==> ode45 at 172
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in ==> Testfunction at 32
[t,x] = ode45(@somefn, tspan, x0);
Thanks in advance for any help!
0 comentarios
Respuesta aceptada
  Jan
      
      
 el 28 de Mzo. de 2012
        The message means, that the subfunction odearguments recieves non-float values, although it needs this type. The message is actually clear in this point.
Are tspan or x0 both floating point types? You can check this by:
class(tspan)
class(x0)
3 comentarios
  Jan
      
      
 el 28 de Mzo. de 2012
				What did you type in at the input prompts? Perhaps variables, which have been declared as SYMs before?
Más respuestas (1)
  shobhit kumar
 el 25 de Dic. de 2013
        i have the same problem but when i check class of x0 and tspan it is double than why i got the same error
0 comentarios
Ver también
Categorías
				Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


