why I can’t save everything into a Matlab Script file?
%First set of polynomials
p1 = [15 9 -22];
p2 = [8 -17 -12];
P = p1 + p2;
disp(‘The sum of the polynomial is’)
disp(P)
%Second Set of Polynomials
x1 = [7 0 -3];
x2 = [-15 -13 18];
X = x1 + x2;
disp(‘The sum of the polynomial is’)
disp(X)
%Expanding first expression
syms x y
B = (3*x + 4*y)^3;
A = expand (B);
disp(‘Expanded form of (3x + 4y)^3:’);
disp(A);
%Expanding second expression
syms m n
B = (5*m^2 + 4*n^2)^5;
A = expand (B);
disp(‘Expanded form of (5*m^2 + 4*n^2)^5’);
disp(A);
%factoring first polynomial
syms a;
A = (a^3 + 5*a^2 – 2*a-24);
B = factor (A);
disp(‘Factor form of (a^3 + 5*a^2 – 2*a-24) ‘);
disp(B);
%factoring second polynomial
syms x
A = 4*x^3 + 3*x^2 – 25*x + 6;
B = factor(A);
disp(‘Factored form of 4x^3 + 3x^2 – 25x + 6:’);
disp(B);
%factoring third polynomial
syms x
A = x^4 – 10*x^2 + 9;
B = factor (A);
disp(‘Factored form of x^4 – 10*x^2 + 9:’);
disp(B);
CAN’T SAVE AS MATLAB SCRIPT FILE%First set of polynomials
p1 = [15 9 -22];
p2 = [8 -17 -12];
P = p1 + p2;
disp(‘The sum of the polynomial is’)
disp(P)
%Second Set of Polynomials
x1 = [7 0 -3];
x2 = [-15 -13 18];
X = x1 + x2;
disp(‘The sum of the polynomial is’)
disp(X)
%Expanding first expression
syms x y
B = (3*x + 4*y)^3;
A = expand (B);
disp(‘Expanded form of (3x + 4y)^3:’);
disp(A);
%Expanding second expression
syms m n
B = (5*m^2 + 4*n^2)^5;
A = expand (B);
disp(‘Expanded form of (5*m^2 + 4*n^2)^5’);
disp(A);
%factoring first polynomial
syms a;
A = (a^3 + 5*a^2 – 2*a-24);
B = factor (A);
disp(‘Factor form of (a^3 + 5*a^2 – 2*a-24) ‘);
disp(B);
%factoring second polynomial
syms x
A = 4*x^3 + 3*x^2 – 25*x + 6;
B = factor(A);
disp(‘Factored form of 4x^3 + 3x^2 – 25x + 6:’);
disp(B);
%factoring third polynomial
syms x
A = x^4 – 10*x^2 + 9;
B = factor (A);
disp(‘Factored form of x^4 – 10*x^2 + 9:’);
disp(B);
CAN’T SAVE AS MATLAB SCRIPT FILE %First set of polynomials
p1 = [15 9 -22];
p2 = [8 -17 -12];
P = p1 + p2;
disp(‘The sum of the polynomial is’)
disp(P)
%Second Set of Polynomials
x1 = [7 0 -3];
x2 = [-15 -13 18];
X = x1 + x2;
disp(‘The sum of the polynomial is’)
disp(X)
%Expanding first expression
syms x y
B = (3*x + 4*y)^3;
A = expand (B);
disp(‘Expanded form of (3x + 4y)^3:’);
disp(A);
%Expanding second expression
syms m n
B = (5*m^2 + 4*n^2)^5;
A = expand (B);
disp(‘Expanded form of (5*m^2 + 4*n^2)^5’);
disp(A);
%factoring first polynomial
syms a;
A = (a^3 + 5*a^2 – 2*a-24);
B = factor (A);
disp(‘Factor form of (a^3 + 5*a^2 – 2*a-24) ‘);
disp(B);
%factoring second polynomial
syms x
A = 4*x^3 + 3*x^2 – 25*x + 6;
B = factor(A);
disp(‘Factored form of 4x^3 + 3x^2 – 25x + 6:’);
disp(B);
%factoring third polynomial
syms x
A = x^4 – 10*x^2 + 9;
B = factor (A);
disp(‘Factored form of x^4 – 10*x^2 + 9:’);
disp(B);
CAN’T SAVE AS MATLAB SCRIPT FILE syms, matlab, saving MATLAB Answers — New Questions