How can i replace elements from first matrix to second without changing the size of second matrix?
1 次查看(过去 30 天)
显示 更早的评论
I have a matrix
A=[1 3 4 6];
and
B=[1 5 6 9 10 12 18];
the length of A is 4 and B is 7. Now i want to change the elements of B by changing first 4 elements of A in B.Final output i want is
B=[1 3 4 6 10 12 18]
How it can be done?
Please help me...
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!