How to use for loop to define these vector?

조회 수: 3 (최근 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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by