How to use for loop to define these vector?

2 ビュー (過去 30 日間)
Eric Chua
Eric Chua 2020 年 5 月 30 日
回答済み: Abhisek Pradhan 2020 年 6 月 2 日
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.

回答 (1 件)

Abhisek Pradhan
Abhisek Pradhan 2020 年 6 月 2 日

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by