Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Solve for the square root of each value in a matrix
조회 수: 2 (최근 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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!