Replace the first row of a matrix with the Square Root of each value

H = [9 16 4; 1 3 5]
"In one line of code, take the square root of the first row of H and replace the current values in the first row of H with the result. Display the command entered into the command window."

More Answers (1)

Replace the square root with the tangent, so that the tangents of the numbers 0, 1, 4, 9... 144 are printed and so the decimal points are aligned.

Asked:

on 19 Mar 2013

Answered:

on 10 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!