Relpace array elements by another array where both array length are not equal?

Hi all,
I have a Array say A = [0 0; 0 0; 0 0; 0 0; 0 0] i.e. array size 5 by 2
A =
0 0
0 0
0 0
0 0
0 0
I have another Array B = [1 2; 5 7; 3 8] i.e. array size 3 by 2
B =
1 2
5 7
3 8
where both Array A and B are not equal in length.
I want to replace the array elements A by the array elements of B like this
A =
1 2
5 7
3 8
0 0
0 0
# Thanks in advance

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

製品

リリース

R2019b

質問済み:

2021 年 4 月 26 日

回答済み:

2021 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by