what do symbols like "nn" and "kk" do in a MATLAB script?

6 visualizaciones (últimos 30 días)
Rosie
Rosie el 1 de Feb. de 2017
Respondida: Star Strider el 1 de Feb. de 2017
For example, what does the following portion of a script mean/do?
for kk = 1:size(session,1)
dara_folder{kk} = strcat("whatever name you want for that folder");
end

Respuestas (1)

Star Strider
Star Strider el 1 de Feb. de 2017
The ‘kk’ is simply the variable name for a loop counter in this code. (Any valid variable name will work.) See the documentation on for (link) loops for a full explanation.

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