what is the meaning of? K*(i-1):end

1 vue (au cours des 30 derniers jours)
loredana
loredana le 30 Déc 2014
Modifié(e) : Matt J le 30 Déc 2014
i have a function: c_t(i,1+K*(i-1):end)=..... i don't undestrand the meaning of K*(i-1):end

Réponses (2)

Youssef  Khmou
Youssef Khmou le 30 Déc 2014
c_t(i,1+K*(i-1):end) means selecting elements identified by 1+K(i-1) to end from matrix c_t in the row i, generally X(a:b) picks elements of positions a,a+1,a+2,...b.

Matt J
Matt J le 30 Déc 2014
Modifié(e) : Matt J le 30 Déc 2014
If what's confusing is the use of END, then here, it is the same as
L=size(c,2);
c_t(i,1+K*(i-1):L)=....

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by