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

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 27 日

1 投票

help while
help for

カテゴリ

ヘルプ センター および File ExchangeLoops 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