replacing a vector elemnts from another vector of the same size
1 次查看(过去 30 天)
显示 更早的评论
Hello
Im trying to replace some values in one vector to values from another vector in the same location
let says this is my vector:
5
3
8
2
3
and i have this vector
99
0
23
0
0
I want to replace zeros in the second vector to be like this
99
3
23
2
3
Are there any effiecient way to do that
Many thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!