How to use for loop to define these vector?

x1 = [1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1]^T
x2 = [1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1]^T
I have trouble to express x[k], X[k], cj, and Cj in Matlab because they are depend on the k. In here, k = 3 up to k = 16, and L = 3. I thinking of using for loop but I am not sure how to do it as Im quite fresh to coding. Please, any help is appreciated.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Mayo de 2020

Respondida:

el 2 de Jun. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by