How to write a for and while loop for sqrt(i)

Unfortunately I am new to Matlab, but I was wondering about loop functions. I need to time a for loop and while loop with the same number of operations while calculating sqrt(i). How would I go about doing this? -Cody

댓글 수: 2

Simon Lugonda
Simon Lugonda 2020년 12월 17일
Write a program to display the square root of ten natural numbers using loops
Simon Lugonda
Simon Lugonda 2020년 12월 17일
Write a program to display the square root of ten natural numbers using loops

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2013년 2월 27일

댓글:

2020년 12월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by