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

2 visualizaciones (últimos 30 días)
Cody F
Cody F el 27 de Feb. de 2013
Comentada: Simon Lugonda el 17 de Dic. de 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 comentarios
Simon Lugonda
Simon Lugonda el 17 de Dic. de 2020
Write a program to display the square root of ten natural numbers using loops
Simon Lugonda
Simon Lugonda el 17 de Dic. de 2020
Write a program to display the square root of ten natural numbers using loops

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 27 de Feb. de 2013
help while
help for

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by