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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment