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 Kommentare

How is the variable jk created in your script? It must be created before you use it.
John Woods
John Woods am 1 Nov. 2021
Bearbeitet: John Woods am 2 Nov. 2021
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.
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.
Because you are not calling it. Check out Ch 2 and Ch 7 of MATLAB Onramp.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 1 Nov. 2021

Kommentiert:

am 2 Nov. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by