Hi
I want to store data from a nested for loop and this is my code
%%Initialisation 1
delta_x=(2*pi)/100;delta_y=delta_x;H=2*pi;L=4*pi; %Mesh
n=(L/delta_x)+1; Converts rectangle to a meshm=(H/delta_y)+1;x=[0:delta_x:n]';y=[0:delta_y:m]';for i=x(2):delta_x:x(end-1) for j=y(2):delta_y:y(end-1) pointer=[(j-1)*n+i]; endend
Everytime the pointer runs it only gives me the latest iteration and not all the iterations like I want. I tried putting (i,j) before it but that was to no avail and now am at my wits end as to what to do. Any help would be much appreciated
Best Answer