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

조회 수: 1 (최근 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