1 test_1_fp = 'test_1_out.txt'; 2 test_2_fp = 'test_2_out.txt'; 3 test_3_fp = 'test_3_out.txt'; 4 5 function main(file_path) 6 7 x = load(file_path); 8 9 media = mean(x); 10 desvio = std(x); 11 12 printf("Archivo `%s`\n", file_path); 13 printf("Media = %.2f\n", media); 14 printf("Desvío estándar = %.2f\n\n", desvio); 15 endfunction 16 17 main(test_1_fp); 18 main(test_2_fp); 19 main(test_3_fp);
