Advertisement
Guest User

Lab3

a guest
Oct 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.24 KB | None | 0 0
  1. x=-1:0.2:1;
  2. y1=2*x.^3 + cos(x);
  3. plot(x,y1,'--bs','LineWidth',1.5,'MarkerEdgeColor','m','MarkerFaceColor','g','MarkerSize',10);
  4. title('Graficul funtiei f')
  5. xlabel('x');
  6. ylabel('f(x)');
  7. legend('f(x)=2*x^3+cos(x)','location','northwest');
  8. grid;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement