Help with unification cycle

조회 수: 9 (최근 30일)
Lev Mihailov
Lev Mihailov 2019년 9월 2일
댓글: TADA 2019년 9월 2일
Hello! I have been given 2 matrices in one value, zeros in another, and units I need to combine them
x=[0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0]
y=[200 900 900 200 200 ...]
I need to make it so that wherever the units are replaced by values
  댓글 수: 1
TADA
TADA 2019년 9월 2일
could you clarify what is the role of each matrix (x and y) and how you want to address the ones and zeros? posting sample input and desired output would also help, as well as what you have tried already

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

채택된 답변

Rik
Rik 2019년 9월 2일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by