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

3 次查看(过去 30 天)
loredana
loredana 2014-12-30
编辑: Matt J 2014-12-30
i have a function: c_t(i,1+K*(i-1):end)=..... i don't undestrand the meaning of K*(i-1):end

回答(2 个)

Youssef  Khmou
Youssef Khmou 2014-12-30
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 2014-12-30
编辑:Matt J 2014-12-30
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)=....

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by