📄 dispose_sensors.m
字号:
function [ sensors ] = dispose_sensors()
% Dispose sensors
% [ sensors ] = dispose_sensors()
% INPUTS
% none
% OUTPUTS
% sensors(1, :) : the coordinate of x
% sensors(2, :) : the coordinate of y
%
% In the area of 100 * 100,there are 400 sensors distributed uniformly
% sensors means of the location of each sensor
for yloop = 1:20
for xloop = 1:20
sensors(1, (yloop-1)*20+xloop) = xloop / 20 * 100;
sensors(2, (yloop-1)*20+xloop) = yloop / 20 * 100;
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -