how can i put NaN

1 次查看(过去 30 天)
nur syafiqah
nur syafiqah 2021-12-31
How can i put NaN in row 4
  1 个评论
Yusuf Suer Erdem
Yusuf Suer Erdem 2021-12-31
If my answer does your job. Accept my answer please.

请先登录,再进行评论。

回答(2 个)

Yusuf Suer Erdem
Yusuf Suer Erdem 2021-12-31
Try these codes below which I did for you, I hope could have given you an idea about it. Good luck!
A = randi([1 100],3,30019,'double');
newRow = NaN(1,30019);
newMatrix=[A; newRow];

Walter Roberson
Walter Roberson 2021-12-31

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by