Arrays may seem like a daunting task but fear not... that's what matlab does best. A task I've put off tackling in Python for a long long time....
All you need initially is to understand how for loops work in this bugger. In a language like Python, for loops read like a slice of sweet, sweet english; for variables in mylist: do stuff.
Matlab is funny. To create an array via for loop, you need to specify how tall and how wide you want the array to be:
for noteINcolumn = 1:m for noteINrow = 1:n musicalArray(noteINcolumn, noteINrow) = some equation or other. end end
Matlab confuses the crap out of me sometimes.