Answer to Question #6673 in MatLAB | Mathematica | MathCAD | Maple for Azza Ahmed

Question #6673
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.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS