Efficient Frotier / Solver
이전 댓글 표시
I'm trying to solve the following equation but the solver thinks K as a variable.Either I loop it or not. Is there a way to make the solve function see K as a vector of numbers?
K = 0.01:0.01:2; Sol= zeros(length(K),3);
S=solve('0.08*x - 0.0338*y - 0.1*z = 0.045*y - 0.0338*x + 0.09*z',... 'x + y = 1', '0.1*x + 0.08*y - K=0'); S = [S.x S.y S.z];
댓글 수: 1
Walter Roberson
2011년 12월 5일
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
답변 (1개)
Walter Roberson
2011년 12월 5일
0 개 추천
See http://www.mathworks.com/matlabcentral/answers/23047-how-to-use-the-output-of-solve-in-another-equation and also char() and vectorize()
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!