Skip to main content
1-Visitor
Oct 29, 2014 9:31 PM UTC
Question

How to assembly a matrix using vectors?

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
Oct 31, 2014 10:33 PM UTC

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.

Translate
23-Emerald V
Oct 31, 2014 11:49 PM UTC

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

Translate