mihainan

Untitled

Apr 24th, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.20 KB | None | 0 0
  1.  
  2.     grid on
  3.     figure(1)
  4.     hold on
  5.     x = s:pas:f;
  6.     n = length(x);
  7.     for i=1:n
  8.         y1(i) = functie(x(i));
  9.         y2(i) = Neville(a1, b1, x(i));
  10.     endfor
  11.     axis([0 5 0 1])
  12.     plot(x, y1, '*r');
  13.     plot(x, y2, '*g');
Advertisement
Add Comment
Please, Sign In to add comment