필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

can anyone help me solve this looping problem?

조회 수: 1 (최근 30일)
Brendan Atarigiya
Brendan Atarigiya 2016년 6월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
hello, please I want to write this loop such that I can guess an initial y, choose, l, and calculate new_y. in the next iteration, l should be 0.2 and y = y1. can anyone please help me write it in matlab. you can assume any values for the variables. thank you.
%guess initial y
for l=0:0.2:1
y1=x*l +w/y
end
new_y=y1
  댓글 수: 1
Image Analyst
Image Analyst 2016년 6월 14일
What do you mean by you can guess an initial y?
Are you supposed to figure out what y is based on that loop? But that loop needs a y before it can even run, as well as an x value.
Or do you mean that you just arbitrarily assign some y value before the loop starts and somehow expected that y1 would magically equal that y at the end of the loop?

답변 (0개)

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by