Prev: FZERO Error plus matrx dimensions
Next: Hi all
From: Kyle on 29 Mar 2010 23:30 I cannot figure out why I keep getting this error: ??? Error using ==> fzero FZERO cannot continue because user supplied function_handle ==> @(Velocity)(0.5*C_D1*p*A_o*(Velocity^2)*((1000^2)/(3600^2)))+F_grav+F_rolling+Force_Car failed with the error below. Error using ==> plus Matrix dimensions must agree. here is part of my code: fun=@(t)8*x*(t^2)+Growth+Length+Width x = fzero(fun,1) Where growth, length, and width are the result of other equations in my code. I have this code in a for loop to find the value at which this function is zero at 30 different values for a particular parameter that each equation is dependent upon. What am I doing wrong?
|
Pages: 1 Prev: FZERO Error plus matrx dimensions Next: Hi all |