MATLAB: Division of two vectors – mrdivide /mrdivide Can you please tell me how works the operator "/" in this example? I don't know how I obtained this result… Thanks ! Example: >> A=[1 2 3]; >> B=[2 3 4]; >> C=A/B C = 0.6897 Best Answer C = A/B determines the matrix C such that: C*B = AYou may also refer the following answer https://in.mathworks.com/matlabcentral/answers/485644-how-does-matlab-divide-two-row-vectors-by-each-other-to-get-a-scalar?s_tid=answers_rc1-1_p1_Topic Related SolutionsMATLAB: Array Division Usually u/v is equal to u*inv(v) in matrix terms.However, since v does not have an inverse Matlab will calculate the Moore-Penrose pseudoinverse of v instead. This can also be done directly:u*pinv(v) = 0.4023 MATLAB: Element-wise multiplication different in newer versions Yes, this is the new feature called "arithmetic expansion" introduced in R2016b. See https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/ Related QuestionMrdivide Memory Issue
Best Answer