Skip to main content
1-Visitor
October 29, 2014
Question

How to assembly a matrix using vectors?

  • October 29, 2014
  • 2 replies
  • 1085 views

Hi everyone.

I am trying to write the code below to assembly a matrix, but it is not working so far. Could anybody do a little check up what is my mistake, please? Thanks in advance.

Code.png

2 replies

Werner_E
25-Diamond I
October 31, 2014

Its not fun to debug a picture. You don't even show what the error message says. We don't know anythng about the variables you are using - whether you use units or not, etc.

Please atach your worksheet.

BTW, your questions obviously was asked two days ago but is just showing up now. This forum seems to be screwed up at the time.

23-Emerald V
October 31, 2014

Have you got the subscript f in the "return" Q5 implemented as an index rather than a name subscript? Its difficult to tell from the image, but it looks like the Q is red but the f is black ...

Stuart