![123.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247379/123.png)
Doubt in MATLAB program
조회 수: 1 (최근 30일)
이전 댓글 표시
Can anyone help to fix this error?![matlab error.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247375/matlab%20error.jpeg)
![matlab error.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247375/matlab%20error.jpeg)
댓글 수: 0
채택된 답변
darova
2019년 11월 8일
Here is the problem
![123.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247379/123.png)
Also you have y(1),y(2),y(3). It means that you have 3 initial condition values, also you should have 3 diff. equations
댓글 수: 2
darova
2019년 11월 8일
Can you please show how you declare derivatives in form:
ff = y(1);
df = y(2);
% ...
phi = (6);
dphi = y(7);
Write your equations according to this:
f(1,1) = df;
f(2,1) = ddf;
f(3,1) = df + 1.333*df^2 - ff*ddf;
% ...
You have y(8) (8 values) but still have only 4 initial values ![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247392/Untitled.png)
![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247392/Untitled.png)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!