Как исправить ошибку в MatLab: Error using plot
Vectors must be the same length. Error in Untitled2 (line 9) plot(X,Y1,X,Y2); Должен получится график функции: {2a+b=1 2a-b=7 Код:
A=[2,1;2,-1]
B=[1;7]
d=det(A)
X=inv(A)*B
A*X
X=-2:0.5:2;
Y1=(-2*A+1)/(1);
Y2=(-2*A+7)/(-1);
plot(X,Y1,X,Y2);
grid on