Facebook
From Crimson Hamerkop, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 940
  1. function rysujFunkcje(fh, a, b, deg)
  2.     x = a:0.5:b;
  3.     y = fh(x);
  4.     xp = x*cos(deg)-y*sin(deg);
  5.     yp = x*sin(deg)+y*cos(deg);
  6.     figure
  7.     plot(x,y,'r')
  8.     hold on
  9.     plot(xp,yp,'g')
  10. end
  11.  
  12. fh -> f = @(x) x.^2-1;