I am trying to access Matlab dynamically created variables but I am unable to do it. I know that in Matlab it's not ideal to create dynamic vars but in this case, it's pretty easy and comfy. to use them.
Let's say that the user can define a few points
point0 = [0,0,0;10,0,0];
point1 = [10,0,0;0,10,0];
point2 = [10,10,0;-10,0,0];
And what I want to do is to extract data from all of them in while cycle. But I don't know how to access them.
I tried
point[i](1,1); % access number from first column and first row.
point{i}(1,1);
And storing "point" + i
in variable but nothing works.
I will be thankful for any help.