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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

how can i write this?

dbayasgalan
1-Newbie

how can i write this?

Untitled.png

1 ACCEPTED SOLUTION

Accepted Solutions

With all the letters available, why are we using "C" as the name of separate variables?

You define C1, C2, ... C5 each as a two value vector.  At that point, C is a six valued vector; the first position (C0) has nothing in it (default 0) and the other five positions each have a vector with two numbers.

Then you try to create a matrix with name C (again!).  This matrix is supposed to be a 4 X 4 matrix (from 0 to 3), and it looks like you're trying to put a vector in each position along the diagonal with two values in it.

Might work if you change the name of the matrix!

View solution in original post

1 REPLY 1

With all the letters available, why are we using "C" as the name of separate variables?

You define C1, C2, ... C5 each as a two value vector.  At that point, C is a six valued vector; the first position (C0) has nothing in it (default 0) and the other five positions each have a vector with two numbers.

Then you try to create a matrix with name C (again!).  This matrix is supposed to be a 4 X 4 matrix (from 0 to 3), and it looks like you're trying to put a vector in each position along the diagonal with two values in it.

Might work if you change the name of the matrix!

Top Tags