Answered step by step
Verified Expert Solution
Question
1 Approved Answer
lines 3 and 4 are in matlab code and I want to translate it into python but I dont know the right syntax. If the
lines 3 and 4 are in matlab code and I want to translate it into python but I dont know the right syntax.
If the SLM_image range from kk to k2 is less than 0, i want this to form an uint8 (8 bit array) with the value of 225.
Please translate
for k in range(SLM_image,1): for k2 in range(SLM_image,2): if SLM_image(kk,k2) > 0 SLM_image(kk, k2) uint8(255)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started