Question: so this code was originally on matlab and im trying to translate onto python. For line 7 i get unexpected indent when i run it,

so this code was originally on matlab and im trying to translate onto python. For line 7 i get "unexpected indent" when i run it, can you fix it and explain why this shows up?

so this code was originally on matlab and im trying to translate

1 2 n108; 3 qn/36; #"total images to create" #"number of images from each complex field type" [0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5]] 7 for(s 0:n-1): #create n different turbulent beams 0th to n-1, inclusive #"sets 0AM parameter to s/q rounded to lowest integer OAM = floor(s/q) if 0AMs/q: #"takes clean (non-turbulent) picture" a 9 10 oam0AM 0AMM(1,0AM+1) 12 13 14 15 16 17 18 19 20 21 top_hat2 (0AM, p) pause(.5) else: 0AMM(1,0AM + 1) turbtrain(0AM, p) pause(.5)]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!