Please clarify this statement?

2 views (last 30 days)
ahmed
ahmed on 21 Sep 2014
Answered: Roger Stafford on 21 Sep 2014
var_temp(num_loc(k)+num_1(k) :end+num_1(k))=var_temp(num_loc(k):end); var_temp(num_loc(k)+1:num_loc(k)+num_1(k))=var_temp(num_loc(k));

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 21 Sep 2014

Roger Stafford
Roger Stafford on 21 Sep 2014
Read about the 'colon' operator here:
http://www.mathworks.com/help/matlab/ref/colon.html
and the 'end' array index here:
http://www.mathworks.com/help/matlab/ref/end.html

Categories

Find more on Data Types in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!