I've created a virtual phantom with dim 64*64. As well I have a 1GB file of numbers with lenght 6357087. I want matlab to take some of these values and multiply them by an algorithm and then increment certains numbers and take other values over {let's say 32 times}. The values should be put on some pixel of the virtual phantom. My code is this:
for p1 = 1:31 %initializing the number of rows in the phantom
for h1 = 1:64 %initializing the number of rows
N1 = 380 %number of first group of numbers in the text file that will be used
for ph1 = 1:N1
M(:,ph1) = A*M(:,ph1-1)+B;
gradPE1 = Gyro_ratio(B0+PE_val1(ph1)*dT/Tpe*Ry1);
M(p1,h1) = zrot(gradPE1)*M(:,ph1);
So I need to increment another 380 values before using other group of 380 numbers from my text file. I need to repeat this process at least 32 times. Please help me with this.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments