function rysujFunkcje(fh, a, b, deg) x = a:0.5:b; y = fh(x); xp = x*cos(deg)-y*sin(deg); yp = x*sin(deg)+y*cos(deg); figure plot(x,y,'r') hold on plot(xp,yp,'g') end fh -> f = @(x) x.^2-1;