Integrating this function and trying to solve for a variable displays errors!
2 views (last 30 days)
Show older comments
Here is the code with the error:
syms initial theta
ints = int(1/sqrt(cos(initial)-cos(theta)),initial,pi/2);
func = L/sqrt((E*I)/(2*F)) - ints;
S = fsolve(func,0);
S
Error using lsqfcnchk (line 108)
If FUN is a MATLAB object, it must have an feval method.
Error in fsolve (line 235)
funfcn = lsqfcnchk(FUN,'fsolve',length(varargin),funValCheck,gradflag);
Error in GuessesICs (line 65)
S = fsolve(func,0);
I am trying to solve for initial in this function. the fuction is in respect to theta (dθ) so that should not be a problem?
Anythign appreciated
Thank you
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!