
function demo

for n=2:10
    v=rand(n,1);
    flag=dati_non_crescenti(v);
    fprintf('\n \t n: %2.0f',n);
    fprintf('\n \t %1.15e',v);
    fprintf('\n \t flag: %1.0f',flag);
end