Here is a MATLAB script to solve the quadratic equation with variable coefficients:
% Script to solve the quadratic equation ax^2 + bx + c = 0
clear
disp('Enter coefficients a, b, c: ')
a = input('a = ');
b = input('b = ');
c = input('c = ');
x = sym('x');
sol = solve(a*x^2 + b*x + c == 0, x);
disp('The solutions are:')
disp(sol)
This script first clears any existing variables, then prompts the user to input the coefficients a, b, and c. It then defines x as a symbolic variable