how to connect two function
Mostrar comentarios más antiguos
in my code LSC i calculate matrix(s) that send to function Accuracy
so i want to make loop to variable (r) in LSC function this make number of matrix (s) as an output that should to send to function Accuracy so
how to make for loop i function LSC and send it output to function Accuracy
LSC function
[label,s] = LSC(data,k)
p = 7;
r = 3;
.
.
U(:,1) = [];
[label,s] = kmedo(U',k);
end
Accuracy fun
Accuracy=yarbb(data,x)
for i=1:100
rng('default')
[label,s] = LSC(adj,x);
coordinates=data;
Av=[coordinates; fliplr(coordinates)];
linindices = sub2ind(size(s), Av(:, 1), Av(:, 2))';
remain=setdiff(1:numel(s), linindices);
sim=s(remain);
similarity=unique(sim);
b = similarity(similarity~=0);
auc= (ndash + 0.5 * nddash)/(ndash+nddash+nn);
Accuracy = mean(auc)
end
3 comentarios
Image Analyst
el 3 de Mayo de 2016
Where is your function line? Something like
function [label,s] = LSC(data,k)
function [output1, output2] = Accuracy(input1, input2)
You need to have those.
muhammad ismat
el 3 de Mayo de 2016
per isakson
el 3 de Mayo de 2016
My guess. IA says: Replace
Accuracy=yarbb(data,x)
by
function Accuracy=yarbb(data,x)
Respuestas (0)
Categorías
Más información sobre Waveform Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!