Howto evaluate this sum function to define a matrix?

Howto evaluate this sum function to define a matrix? - Messages

#1 Posted: 11/16/2015 1:34:03 PM
archbuilder

archbuilder

0 likes in 4 posts.

Group: User

Hello smath-forum,

I am trying to use the equations below to define a matrix.
The result should be a 3x3 matrix per equation. Which later is composed to a 6x6 matrix:
AB
BD

Is that possible in smath? If yes - how could it be done?

equations

Q is 3x3 matrix
Q* is 2x2 matrix

Is something like this allready documented or should i do it?

in hope for your support

redet
#2 Posted: 11/17/2015 8:50:10 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

You have to define A,B,D in a loop, then you can merge the matrices using augment(...) and stack(...)

2015-11-18 00_55_08-SMath Studio Desktop - [Pie Chart Test.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 11/18/2015 5:25:23 AM
archbuilder

archbuilder

0 likes in 4 posts.

Group: User

Thank you this works very good.

An alternative is to write the equations into a Matrix and that loop over it:

alternative path
  • New Posts New Posts
  • No New Posts No New Posts