graph4.m 378 B

123456789101112131415161718192021
  1. X=linspace(10,90,9);
  2. data=csvread('lab_6_M_10.csv'); % reading csv file
  3. X = data(:,1);
  4. Y = data(:,2);
  5. Y1 = data(:,3);
  6. figure;
  7. semilogy(X,Y1,'-o');
  8. hold on;
  9. grid on;
  10. title('Precision Vector (Iterations)');
  11. xlabel('Iterations');
  12. ylabel('Precision');
  13. figure;
  14. semilogy(X,Y,'-o');
  15. hold on;
  16. grid on;
  17. title('Precision Value (Iterations)');
  18. xlabel('Iterations');
  19. ylabel('Precision');