I want arrays of one and two but this code doesn't do it

1 visualización (últimos 30 días)
Sadiq Akbar
Sadiq Akbar el 13 de Oct. de 2022
Editada: Sadiq Akbar el 13 de Oct. de 2022
its deleted

Respuestas (1)

KSSV
KSSV el 13 de Oct. de 2022
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

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by