perfwrite.m

来自「It s a simulation for WCDMA Radio Networ」· M 代码 · 共 37 行

M
37
字号
%PERFWRITE   PERFWRITE(PERFORMANCE, FILENAME) writes performance to parameter file
%
%Inputs:
%   PERFORMANCE: array of performance structures to be saved
%   FILENAME   : name of the output file (optional, default=Performance.txt)
%Outputs:
%   none
%
%Author : Achim Wacker (AWa) NTC
%
%Revision: 5.0.0cd   Date: 17-Jul-2001
%
%needed m-files: none

function PerfWrite(performance, perfFilename)

if (nargin == 1)
   perfFilename = 'Performance.txt';
elseif (nargin ~= 2)
   error('wrong number of input arguments');
end

perfFID = fopen(perfFilename, 'w');

numPerfs = length(performance);
for k = 1:numPerfs
   fprintf(perfFID, '%f\t', performance(k).i);
   fprintf(perfFID, '%d\t', performance(k).m);
   fprintf(perfFID, '%f\t', performance(k).SHO);
   fprintf(perfFID, '%f\t', performance(k).covth);
   fprintf(perfFID, '%d\t', performance(k).mDL);
   fprintf(perfFID, '\n');
end
fclose(perfFID);

return

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?