How to use for loop to define these vector?

3 Ansichten (letzte 30 Tage)
Eric Chua
Eric Chua am 30 Mai 2020
Beantwortet: Abhisek Pradhan am 2 Jun. 2020
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.

Antworten (1)

Abhisek Pradhan
Abhisek Pradhan am 2 Jun. 2020

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by