When I run this code, 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? Thank you very much
dots.nDots = 100; % number of dots
for dots = 1:dots.nDots dots.x = (rand(1,dots.nDots)); dots.y = (rand(1,dots.nDots));end
Best Answer