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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Tooljoint)


@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

Werner_E
25-Diamond I
(To:Tooljoint)


@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

 

Announcements

Top Tags