How to transfer value of a array to another array?
1 次查看(过去 30 天)
显示 更早的评论
I have a problem to solve. How we can transfer value of one array to another array? For example,the sample code are as below:
a=zeros(2,5)
a(1,2)=2;a(1,4)=6;a(2,1)=8;a(2,3)=2
b(1,1)=1;b(1,2)=4;b(1,3)=1;b(2,1)=9;b(2,2)=1;b(2,3)=9
So, I want the value from array b will replace the 0 value in array a? How can I do it? I hope I can get help to do this.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!