1

I am trying to make my control algorithm more efficient since my matrices are sparse. Currently, I am doing conventional matrix-vector multiplications in Simulink/xPC for a real-time application. I can not find a way to convert the matrix to a sparse one and perform that type of multiplication where it is compatible with xPC. Does anyone have an idea on how to do this?

ronalchn
  • 12,225
  • 10
  • 51
  • 61
tmar89
  • 33
  • 1
  • 6

1 Answers1

1

It appears, at least as of earlier this year, that it is impossible to do sparse matrices in Simulink: see this Q&A on MathWorks' site. As the answerer is a Simulink software engineer, it seems authoritative. :)

Iterator
  • 20,250
  • 12
  • 75
  • 111