Advertisement
Guest User

Untitled

a guest
Apr 29th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.48 KB | None | 0 0
  1. % Palade Catalin-Iulian, 312CA
  2. function [R1 R2] = PageRank(nume, d, eps)
  3.     % Calculeaza indicii PageRank pentru cele 3 cerinte
  4.     R1 = Iterative(nume, d, eps);
  5.     R2 = Algebraic(nume, d);
  6.     % Scrie fisierul de iesire nume.out
  7.     fido =  fopen(strcat(nume, '.out'),'a');
  8.     fid = fopen(nume, 'r');
  9.     N = fgetl(fid);
  10.     N = str2double(N);
  11.     fprintf(fido, %0.6f, A);
  12.     fprintf(fido, %0.6f, R1);
  13.     fprintf(fido, %0.6f, R2);
  14.     fclose(fid);
  15.     fclose(fido);
  16. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement