I'm not sure whats wrong with my code here, but it wont solve the system of equations. Maybe I'm missing something.
w1 = 0.05*pi;w2 = 0.1*pi;w3 = 0.2*pi;syms b1 b2 b3Bw1 = 2*b1*cos(2*w1)+2*b2*cos(2*w1)+b3 == 0;Bw2 = 2*b1*cos(2*w2)+2*b2*cos(2*w2)+b3 == 1;Bw3 = 2*b1*cos(2*w3)+2*b2*cos(2*w3)+b3 == 0;[A,B] = equationsToMatrix([Bw1, Bw2, Bw3], [b1, b2, b3]);X = linsolve(A,B);
Best Answer