Does anyone know how to fix this....
Does anyone know how to fix this....
(OP)
I don't understand that "must be an scalar", the number is already an scalar!
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
Does anyone know how to fix this....
|
Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.
Here's Why Members Love Eng-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Does anyone know how to fix this....
your second variable "rho" is a matrix with the dimension 1x1 and no skalar (because it stands in brackets).
The easiest way to fix this, is to define a new variable like this: p = r[0,0
That extractes the 0,0-element from this matrix and writes it to a scalar variable.
That would work but I think, your mistake is in the calculation before, rho shouldn't be a 1x1-matrix. This occurs if you multiple a 3x1 with a 1x3 matrix as vectorproduct. Instead of this you can use the scalarproduct (3x1)^T * (1x3). But there may be other possibilities.
Sorry for bad spelling, I've only spare time.
Christian
RE: Does anyone know how to fix this....
RE: Does anyone know how to fix this....
p = r[0,0
Now, i tried to write that but nothing happend, gave me an error, can you take a picture of that, like an example or something?
Thanks!
RE: Does anyone know how to fix this....
The simplest solution is to select the end of the definition of d and tack on [0. Since the vector is 1-D, [0,0 results in an error.
TTFN
RE: Does anyone know how to fix this....
From Mathcad Help:
Apparently when a single value is returned, it appears in a one row vector.
IRstuff's solution should work.
RE: Does anyone know how to fix this....
Thanks very much!!!
here it is........