Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Palade Catalin-Iulian, 312CA
- function [R1 R2] = PageRank(nume, d, eps)
- % Calculeaza indicii PageRank pentru cele 3 cerinte
- R1 = Iterative(nume, d, eps);
- R2 = Algebraic(nume, d);
- % Scrie fisierul de iesire nume.out
- fido = fopen(strcat(nume, '.out'),'a');
- fid = fopen(nume, 'r');
- N = fgetl(fid);
- N = str2double(N);
- fprintf(fido, %0.6f, A);
- fprintf(fido, %0.6f, R1);
- fprintf(fido, %0.6f, R2);
- fclose(fid);
- fclose(fido);
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement