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

main.m
x = linspace(-4, 4, 1000);
y = x.^3 + cos(x) + 10;
plot(x, y);
xlabel('x');
ylabel('y');
title('Graph of y = x^3 + cos(x) + 10');
130 chars
7 lines

related categories

gistlibby LogSnag