How to use for loop to define these vector?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/305959/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/305963/image.png)
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.
0 commentaires
Réponses (1)
Abhisek Pradhan
le 2 Juin 2020
The following link may be helpful in defining the respective vectors.
0 commentaires
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!