cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Must be scalar or matrix

Tooljoint
7-Bedrock

Must be scalar or matrix

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

 

1 ACCEPTED SOLUTION

Accepted Solutions


@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

 

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:Tooljoint)

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


@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

 

Top Tags