draw the graph of y=x^3+cosx+10 for -4<x<4. in matlab

main.m
x = -4:0.01:4;
y = x.^3 + cos(x) + 10;
plot(x, y);
xlabel('x');
ylabel('y');
title('Graph of y = x^3 + cos(x) + 10 for -4 < x < 4');
133 chars
7 lines

related categories

gistlibby LogSnag