필터 지우기
필터 지우기

How to Compute MvPattern?

조회 수: 1 (최근 30일)
Marius
Marius 2016년 4월 18일
댓글: Marius 2016년 5월 10일
I'm trying to compute the MvPattern Sparsity Matrix S for the use in ODE15s solver because my Mass Matrix M(t,y) is strongly depending on y and the calculatin is therefore very slow. Can someone give me a quick example how to build such a matrix? I don't understand the advices in the MATLAB help! Thanks!
  댓글 수: 1
Marius
Marius 2016년 4월 25일
Can nobody help?

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

답변 (1개)

Steven Lord
Steven Lord 2016년 4월 25일
Look at the list of examples on this documentation page. Find one or more examples that say they use the Mass option and whose descriptions sound sort of like the problem you're trying to solve. Read and understand what those options are doing. If after doing that you're still not clear on how to create the mass matrix, post a new question with more details about the specific problem you're trying to solve.
  댓글 수: 2
Marius
Marius 2016년 5월 10일
I'm still trying to calculate MvPattern. I read all the docs. The Mass matrix is not the problem. I calculated this, but I don't understand how to calculate the MvPattern.
Marius
Marius 2016년 5월 10일
I tried too figure it out, for example if i have:
M = [y2 1; y1 y1] and y = [y1; y2]
is the sparsity pattern correct as:
S = [0 0; 1 0]
or as a second example:
M = [y1 y2; y2 y1] and y = [y1; y2]
S = [0 0; 0 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