how to add nan values to existing array?
古いコメントを表示
how to add nan values to existing array? i have 1X5 array.i want to change size to 10x5.
2 件のコメント
You can try this
A = rand(1,5)
A = [A;NaN*(ones(9,5))]
the cyclist
2021 年 11 月 3 日
You can do
nan(9,5)
rather than
NaN*(ones(9,5))
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!