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

2 views (last 30 days)
Cody F
Cody F on 27 Feb 2013
Commented: Simon Lugonda on 17 Dec 2020
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 Comments
Simon Lugonda
Simon Lugonda on 17 Dec 2020
Write a program to display the square root of ten natural numbers using loops
Simon Lugonda
Simon Lugonda on 17 Dec 2020
Write a program to display the square root of ten natural numbers using loops

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 27 Feb 2013
help while
help for

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!