Trouble Plotting Basic Function
I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y)I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y) I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y) plot, function MATLAB Answers — New Questions