I want arrays of one and two but this code doesn't do it
1 回表示 (過去 30 日間)
古いコメントを表示
its deleted
0 件のコメント
回答 (1 件)
KSSV
2022 年 10 月 13 日
u=[20,30,40];
one = zeros
Noise=10:5:40 ;
one = zeros(length(Noise),[]) ;
temp = zeros(length(Noise),[]) ;
time1 = zeros(length(Noise),[]) ;
for i = 1:length(Noise)
for n=1:1 %------------(2)
[best,fmin,time]=fpa(30,0.8,2000,dim,lb,ub,obj);
one(i,n)=fmin;
temp(i,n)=best;
time1(i,n)=time;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Swapping
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[~, ix] = sort(u);
[~, ix1(ix)] = sort(temp(nn,:));
two(i,:) = temp(nn,ix1);
end
end
save 3snSNR_Variable
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!