% Define the function
f = @(x) x.^4 +3*x.^3-6*x;

% Generate x values
x = linspace(-4, 3, 1000);

% Compute y values based on the function
y = f(x);

% Plot the function
figure;
plot(x, y, 'LineWidth', 2);
grid on;
xlabel('x');
ylabel('f(x)');
yaxis([-4 8]);
title('Plot of f(x) = x^4 + 3x^3 -6x');

