Why does the SOLVE command sometimes return an expression rather than a value when solving an equation or set of equations in MATLAB 7.7 (R2008b)?
이전 댓글 표시
The following set of commands when executed in MATLAB 7.7 (R2008b) throws an error.
syms f
n=1;
f1 = solve(cos((2*n+1)*pi-f)+((2*n+1)*pi-2*f)*sin(f)-cos(f));
f1=double(f1);
The error messages include:
Error using ==> sym.double at 29
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use the VPA function instead.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!