Help with unification cycle
2 次查看(过去 30 天)
显示 更早的评论
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
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
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!