Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Solving system with sparse matrices

조회 수: 2 (최근 30일)
Carlos
Carlos 2015년 10월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello, I´m developing a code in which I need to do the follow operation: r=K\F, where r is a vector of displacements, K the stiffness matrix and F a vector of forces. Since the system is very large, I have used the sparse function for K and F (many of their elements are zero). I expected to obtain similar results doing: r=K\F; or K=sparse(K); F=sparse(F); r=K\F; However, I don´t obtain the same results (indeed the variation is very remarkable). Does anyone know if the there are limitations for using the sparse function? Thanks in advanced.
Carlos
  댓글 수: 1
Torsten
Torsten 2015년 10월 21일
Is K regular and square ?
Test the reliability of the results obtained in both cases by calculating K*r-F.
Best wishes
Torsten.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by