필터 지우기
필터 지우기

Carry prior cell forward until there is a new value

조회 수: 1 (최근 30일)
IDN
IDN 2021년 11월 26일
댓글: IDN 2021년 11월 27일
I have a vector with possible 1,0,-1 as answers, each cell is the output of a statement/function. What I want is the following....If prior row is 0, then 1 can occur, and after 1 occurs i need it to continue populating rows below until statement outputs a -1 (also therefore -1 can only occur if prior row is 1).
  댓글 수: 8
IDN
IDN 2021년 11월 27일
no issue with loop, let me try!
IDN
IDN 2021년 11월 27일
Thats it, thanks so much for taking the time to help me out!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by