概述
[paraSet, interSiteDistance ]= initializeSystem();
BS = [];
radiusSite= (1/sqrt(3)).*interSiteDistance;
for beta = paramSet.system.penetLossBeta
tic
location = [];
[paramSet.system.Peffective, Pttl_W]= ptransmit(paramSet,interSiteDistance,beta);
paramSet.system.Peffective = paramSet.system.Peffective - 30;
gridStep = paramSet.system.gridWidth;
for index =1:length(interSiteDistance)
location = [];
nanoBSPlacement = 'FivePerSite';
BS = [];
BS = generatNetwork(BS, radiusSite(index), nanoBSPlacement);
BS = [BS(1:31),BS(42),BS(49),BS(56),BS(63),BS(70),BS(35)];
paramSet.system.nBS=length(BS);
gridWidth= interSiteDistance(index)/2 + paramSet.nano.radius;
gridHeight = radiusSite(index) + paramSet.nano.radius;
gridPointsX = -gridWidth:gridStep:gridWidth;
gridPointsY = -gridHeight:gridStep:gridHeight;
count = 1;
chunk = 1;
for k=gridPointsX
for kk=gridPointsY
[location(count).signalLevel ,location(count).distance] = computeSpectralEfficiency(BS, paramSet, k, kk, index+1, beta);
location(count).averageSignalLevel = sum(location(count).signalLevel(:,:,:),3)/paramSet.system.numSamples;
count = count + 1;
if length(location) == paramSet.system.chunkSize
filename = strcat('signal Levels', '_', num2str(beta), '_', num2str(interSiteDistance(index)),'_', num2str(chunk),'.mat');
save(filename, 'location');
location = [];
count = 1;
chunk = chunk + 1;
end
end
end
if ~(isempty(location))
filename = strcat('signalLevels', '_', num2str(beta),...
'_',num2str(interSiteDistance(index)),'_', num2str(chunk),'.mat');
save(filename, 'location');
end
%=============================
step=index
%=============================
gridStep = gridStep + paramSet.system.gridIncrement;
end
elapsedTime = toc
end
未定义函数或变量 'initializeSystem'。
出错 Untitled4 (line 5)
[paramSet, interSiteDistance ] = initializeSystem()
如题
最后
以上就是迷你太阳为你收集整理的未定义函数 em matlab,新人求助,代码运行总是显示没有定义该函数,如何改?...的全部内容,希望文章能够帮你解决未定义函数 em matlab,新人求助,代码运行总是显示没有定义该函数,如何改?...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复