How to create a unique variable for the outputs of a for loop?
So for example:
for k=1:4
product=k*3
end
I want to be able to distinguish the iterates and have a result like:
product1=3 product2=6 product3=9 product4=12
This is just a simple example, I need it for a much larger problem.
Best Answer