Skip to main content
Best answer by Werner_E

@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

Werner_E_0-1690920921871.png

 

2 replies

23-Emerald IV
August 1, 2023

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:

LucMeekes_0-1690920654535.png

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
August 1, 2023

@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

Werner_E_0-1690920921871.png