what's means this error?
Mostrar comentarios más antiguos
Error using odearguments (line 93)
INT_ALPHA returns a vector of length 151, but the length of initial conditions vector is 1. The vector returned by INT_ALPHA and the initial conditions vector must have the same number of elements.
Error in ode45 (line 114)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in miscela_dopo_urto_normale (line 136)
[j,S] = ode45(@int_alpha , t, 0);
Thanks in advance for any help!
Respuesta aceptada
Más respuestas (1)
Nashira
el 30 de Ag. de 2013
0 votos
2 comentarios
dpb
el 30 de Ag. de 2013
Yes. If that is the case then you likely have something like a missing '.*' or the like that is returning a vector product instead of a single value or the like.
Your mission, should you choose to accept it, is to delve into your function code and see why it's not returning a single value but an array of 151 values.
Nashira
el 30 de Ag. de 2013
Categorías
Más información sobre Programming 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!