clc
clear
F = @(x) 2*x.^2 - 5*x + 7;
x = linspace(-2, 4, 100);
y = F(x); % Evaluate F(x) over the range
plot(x, y, 'b-', 'LineWidth', 1.5);
xlabel('x');
ylabel('F(x)');
title('Plot of F(x) = 2x^2 - 5x + 7');
grid on;
x_min = fminbnd(F, 0, 3);
y_min = F(x_min);
hold on;
plot(x_min, y_min, 'ro', 'MarkerSize', 10, 'MarkerFaceColor', 'r');
legend('F(x)', 'Minimum point', 'Location', 'northeast');
disp(['The minimum value of F(x) occurs at x = ', num2str(x_min)]);
disp(['The minimum value of F(x) is F(x) = ', num2str(y_min)]);
To embed this project on your website, copy the following code and paste it into your website's HTML: