Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Solve for the square root of each value in a matrix

2 vues (au cours des 30 derniers jours)
Kayla Magee
Kayla Magee le 17 Fév 2016
Clôturé : Walter Roberson le 17 Fév 2016
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.

Réponses (0)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by