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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

how can i write this?

dbayasgalan
1-Visitor

how can i write this?

Untitled.png

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!

Announcements

Top Tags