MATLAB: How to do division on matrices divisionmatrix [a b; c d]*[x;y]=[k;l] How can i calculate x and y if I know a,b,c,d and k,l ? Best Answer inv([a b; c d])*[k;l]https://www.mathworks.com/help/matlab/ref/mldivide.html Related SolutionsMATLAB: How to write this without loop d = [zeros(1, 30000); diff(r)];index = (d < -109);r(index) = r(index) + 300;index = (d > 180);r(index) = r(index) - 300;Or:d = [zeros(1, 30000); diff(r)];shift = zeros(size(r));shift(d < -109) = 300;shift(d > 180) = -300;r = r + shift; MATLAB: Subscript indices must either be real positive integers or logicals .. ERROR Your function inv is erased by the variable invinv=inv(D+aL)change it toinv1=inv(D+al) Related QuestionHow to creat this vectorMultiplication between 2 matrixNeed Help Plotting Mode Shapes
Best Answer