Info

此问题已关闭。 请重新打开它进行编辑或回答。

Solve for the square root of each value in a matrix

1 次查看(过去 30 天)
Write a function that takes the square root of only positive values. If the value is negative assign a NaN value. Use an if statement. The separately create a code that loads a matrix, then uses your function “sqrt” from earlier to solve for the square root of each of the values in the matrix.

回答(0 个)

此问题已关闭。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by