Using function with a for loop

8 ビュー (過去 30 日間)
Laidog
Laidog 2022 年 8 月 27 日
コメント済み: Laidog 2022 年 8 月 27 日
I'm struggling to complete the function with a for loop.
Below is what I have got so far. Not sure what went wrong and how to fix it.
I also need a code to call the function at the end.

採用された回答

VBBV
VBBV 2022 年 8 月 27 日
(factorial(i)).^2)
You have two extra parenthesis for this term
  2 件のコメント
VBBV
VBBV 2022 年 8 月 27 日
編集済み: VBBV 2022 年 8 月 27 日
Additional parenthesis )) are not needed. And end is missing for function as well.
Laidog
Laidog 2022 年 8 月 27 日
where should I put the end that I'm missing

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by