필터 지우기
필터 지우기

can we apply ode45 on .mat file

조회 수: 1 (최근 30일)
Muhammad
Muhammad 2023년 12월 21일
답변: Steven Lord 2023년 12월 21일
I have a data of 100x5 columns. can i apply ode45 solver on this data against my specfic initial conditions?
or what is the best way to apply ODE solver on the data?
  댓글 수: 3
Muhammad
Muhammad 2023년 12월 21일
This data will only be used as a right of ODE like in SINDy algorithm and my associated system is discretized ODE
Torsten
Torsten 2023년 12월 21일
We cannot make sense of your problem description.
If you want to integrate the 5 columns, you can use "cumtrapz":
x = 0:0.1:2*pi;
y = sin(x);
Y = cumtrapz(x,y);
hold on
plot(x,Y)
plot(x,-cos(x)+1)
hold off
grid on

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

채택된 답변

Steven Lord
Steven Lord 2023년 12월 21일
Okay, so based on the keywords in the comment a quick Google search found this page. So is this your x matrix or your Θ matrix, using the notation from that page?
If it's your x matrix, are you looking for help in constructing the Θ matrix?
Or do you have both matrices and you're looking for something to perform the LASSO step? The lasso function in Statistics and Machine Learning Toolbox may be of interest to you.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by