How to solve problem 2?
조회 수: 2 (최근 30일)
이전 댓글 표시
This is a problem dynamics problem, how do I solve for the variable k in the function?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327383/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327386/image.png)
u0 = 5000; % This is the answer to the first problem
lambda = 0.03;
pm = 9000;
k = 100;
f = @(t,p) lambda*p*(1-p/pm)-k;
[t,P] = RK4(f,u0,100,10)
Pf = P(end)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327389/image.png)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems Of Linear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!