I am having trouble calling a function into a for loop.

I am getting an "Unrecognized function or variable 'jk'." error on my code. Can someone help me figure out what I am doing wrong?

4 件のコメント

Cris LaPierre
Cris LaPierre 2021 年 11 月 1 日
How is the variable jk created in your script? It must be created before you use it.
John Woods
John Woods 2021 年 11 月 1 日
編集済み: John Woods 2021 年 11 月 2 日
How do I create it in order to use it? Any help would be greatly appreciated. I can't find anything online that is helpful.
John Woods
John Woods 2021 年 11 月 2 日
I put the function at the bottom of the script that I want to use in the loops. I'm not sure why it is not running.
Cris LaPierre
Cris LaPierre 2021 年 11 月 2 日
Because you are not calling it. Check out Ch 2 and Ch 7 of MATLAB Onramp.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2021 年 11 月 1 日

コメント済み:

2021 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by