MATLAB: Anyone know what is the function of matlab to find answer of the question

matrix

i have a matrix g=[a;b] and how can i calculate m=sqrt(a^2 + b^2)? i need to write this function in such a while loop.

Best Answer

m = norm(g);