Skip to content

Instantly share code, notes, and snippets.

@ramonesteban
Created August 20, 2012 04:13
Ejemplo de función en octave
function mifuncion(file_name, n)
output = fopen(file_name, "w");
x = 0;
while (x <= n)
aleatorio = rand();
fprintf(output, "%d %f\n", x, aleatorio);
x++;
endwhile
fclose(output);
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment