필터 지우기
필터 지우기

How to set values calculated from one ode45 as parameters to another ode45?

조회 수: 1 (최근 30일)
Martin Pecha
Martin Pecha 2018년 4월 30일
댓글: Martin Pecha 2018년 5월 2일
Hi
I have 2 defined functions files (F1,F2) + main file. F1 depends on y and F2 depends on T. I call ode45 in main file for F1 to calculate y values. Then I want to call ode 45 for F2 which calculates values T, but needs calculated values from F1. How should I then define (or put) y values in F2 or main file so it will take y values automatically?
Thanks
  댓글 수: 8
Torsten
Torsten 2018년 5월 2일
Uncomment the lines
% cCV2n=y(5);
% cCV3p=y(6);
% cCV3n=y(7);
% cCV4p=y(8);
% cCV4n=y(9);
% cCV5p=y(10);
or set the variables to meaningful values.
Best wishes
Torsten.
Martin Pecha
Martin Pecha 2018년 5월 2일
Thank you very much! It seems to be working. The problem was there and that I missplaced O.5 with 0:5 in one of konstants. What a hell because of this small mistake!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by