MATLAB: How to calculate multiplying two matrices using (for) and (if) loops together ??

homeworkmultiplying two matrices

How to calculate multiplying two matrices provided that the number of line elements in the first matrix equals the number of column elements in the second matrix (using the loop (for) and (if) together) thank you

Best Answer

Hint:
if ~isequal(R, G)
uiwait(errordlg('The matrices are not the same size'));
return;
end