I have this for loop in C:
for (x=100;x>=3.0;x/=2){......}
I am trying to write an equivalent for loop in MATLAB. I have tried this one
for x=100:/2:3
but this doesn’t give any results. So my problem is how to dividing by 2 in each step.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use while instead: