When I run the code below, I get the error "
Unable to perform assignment because dot indexing is not supported for variables of this type.
" Any idea on how to fix it?
dots.nDots = 100;
for dots = 1:dots.nDots
dots.x = (rand(1,dots.nDots));
dots.y = (rand(1,dots.nDots));
end