Skip to main content
1-Visitor
December 10, 2015
Question

Problem with a fuction

  • December 10, 2015
  • 3 replies
  • 2055 views

in this program for the temperature, i have the error "this value must a vector", Please help me

3 replies

25-Diamond I
December 10, 2015

In my opinion your program is far too large and clutterd and should be split into parts.

The error is thrown at this line

because A is not a vector but a 3 x 3 matrix (and would require tw indices zo access elements).

The argument vector A is overwritten by your program here

and is a 3 x 3 matrix because you made the variable a a 3 x 3 matrix here:

Regards Werner

21-Topaz II
December 10, 2015

There are many products poorly written. That is, to make the product, you have not used the product operator. The program is full of such errors.

The dot corresponding to the product is sometimes seen and sometimes not. It seems to me a mistake.

Bye

zbs:

25-Diamond I
December 10, 2015

F.M. wrote:

There are many products poorly written. That is, to make the product, you have not used the product operator.

Implicit vs explicit multipication should not do any harm at all. Its sure not responsible for the error message reported.

WE

21-Topaz II
December 10, 2015

thank you!

December 28, 2015

The Value A must be a vector, but in the program A is calculated from matrix a.