Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I get an error message saying my variable "t" must be a scalar or a matrix. I believe i loaded it as a scalar. What did I do wrong?
I am using Mathcad Mathcad Prime 9.0.0.0.
Jack Smith
Solved! Go to Solution.
@Tooljoint wrote:
I get an error message saying my variable "t" must be a scalar or a matrix. I believe i loaded it as a scalar. What did I do wrong?
I am using Mathcad Mathcad Prime 9.0.0.0.
Jack Smith
No! t in your sheet is NOT a scalar, but its a range variable.
Ranges should be used
- to index vector and matrix elements
- in a program as a variable in a for-loop
- in a plot as independent variable
but otherwise should be avoided.
Maybe you intended to define functions? So you may also let Prime do the derivatives!
And of course you can evaluate the functions at any t you like
No, you defined t as a range. Note that is neither a scalar nor a vector.
Now if you define pos, vel and acc as functions of t, you can plot them, using your definition of t:
Success!
Luc
@Tooljoint wrote:
I get an error message saying my variable "t" must be a scalar or a matrix. I believe i loaded it as a scalar. What did I do wrong?
I am using Mathcad Mathcad Prime 9.0.0.0.
Jack Smith
No! t in your sheet is NOT a scalar, but its a range variable.
Ranges should be used
- to index vector and matrix elements
- in a program as a variable in a for-loop
- in a plot as independent variable
but otherwise should be avoided.
Maybe you intended to define functions? So you may also let Prime do the derivatives!
And of course you can evaluate the functions at any t you like