Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %x=-10:1:10;
- %y=x.^3-3*x;
- %plot(x,y,'--r>', 'LineWidth', 1, 'MarkerEdge', 'b', 'MarkerFaceColor', 'g',...
- %'MarkerSize', 10) , hold on
- %clear all
- %close all
- %fplot(@(x)x.^3-3*x,[-10 10 -10 10])
- %fplot(@(x)x.^2,[0 100])
- %y=(x.^2+1)./x;
- %plot(x,y,'--ro', 'LineWidth', 3, 'MarkerEdge', 'g', 'MarkerFaceColor', 'b',...
- %'MarkerSize', 5)
- subplot(5,2,[1 3]); fplot(@(x)-5*x+3,[-10 10 -10 10])
- subplot(5,2,2); fplot(@(x)4./x,[-10 10 -10 10])
- %subplot(4,2,3); fplot(@(x)3*x.^2,[-10 10 -10 10])
- subplot(5,2,4); fplot(@(x)-x.^3,[-10 10 -10 10])
- subplot(5,2,5); fplot(@(x)log2(x),[-10 10 -10 10])
- subplot(5,2,6); fplot(@(x)log10(x),[-10 10 -10 10])
- subplot(5,2,7); fplot(@(x)sin(x),[0.01 10, -3 3])
- subplot(5,2,8); fplot('tan(x)',[-1 1 -1 1])
- x=-10:1:10;
- y=x.^2;
- subplot(5,2,9:10); plot(x,y,'--ro')
- clear all
- close all
- fi = -2*pi:0.01:2*pi;
- r = 1/sqrt(2) * (1./cos(fi+pi/4));
- subplot(1,2,1); polar(fi, r)
- r = 1 - sin(fi);
- subplot(1,2,2); polar(fi, r)
Advertisement
Add Comment
Please, Sign In to add comment