Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=-1:0.2:1;
- y1=2*x.^3 + cos(x);
- plot(x,y1,'--bs','LineWidth',1.5,'MarkerEdgeColor','m','MarkerFaceColor','g','MarkerSize',10);
- title('Graficul funtiei f')
- xlabel('x');
- ylabel('f(x)');
- legend('f(x)=2*x^3+cos(x)','location','northwest');
- grid;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement