trying to fill a matrix with threshold data
Mostrar comentarios más antiguos
my problem is simple i'm running a threshold through loop, and i want to store the idx in a matrix where each column represent the values after threshold. but because the amount of values in each column is not the same i'm facing the problem of indexing. my code looks like this
for (p=0.6:0.001:1.7); %threshold range
x1=find(x>p); %threshold value
cid=((p*1000)-5999); %trying to index
x2(:,cid)=x(x1); %trying to put threshold values to each column
end;
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Clustering 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!