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

i have a function: c_t(i,1+K*(i-1):end)=..... i don't undestrand the meaning of K*(i-1):end

Antworten (2)

Youssef  Khmou
Youssef Khmou am 30 Dez. 2014

1 Stimme

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 am 30 Dez. 2014
Bearbeitet: Matt J am 30 Dez. 2014

0 Stimmen

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)=....

Tags

Noch keine Tags eingegeben.

Gefragt:

am 30 Dez. 2014

Bearbeitet:

am 30 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by