?? move_initial_location.m
字號:
function [locations] = move_initial_location(locations, q0)
if (size(q0,1)~=1) || ~all(locations{1}.q==q0(1,:))
relocation_count = 1;
for i=1:size(q0,1)
for j=1:length(locations)
if all(locations{j}.q==q0(i,:))
location_to_move =locations{j};
location_from_move=locations{relocation_count};
locations{relocation_count}= location_to_move;
locations{j}= location_from_move;
relocation_count=relocation_count +1;
end%if
if relocation_count > size(q0,1)
break
end
end%for
end%for
end%end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -