Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Solving system with sparse matrices

1 visualizzazione (ultimi 30 giorni)
Carlos
Carlos il 21 Ott 2015
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Torsten
Torsten il 21 Ott 2015
Is K regular and square ?
Test the reliability of the results obtained in both cases by calculating K*r-F.
Best wishes
Torsten.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by