Filter löschen
Filter löschen

Help with unification cycle

1 Ansicht (letzte 30 Tage)
Lev Mihailov
Lev Mihailov am 2 Sep. 2019
Kommentiert: TADA am 2 Sep. 2019
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 Kommentar
TADA
TADA am 2 Sep. 2019
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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Rik
Rik am 2 Sep. 2019

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by