How to insert NaN at the end of matrix (.mat)
2 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix (.mat) with two columns and I want to insert a line of NaN at the end of matrix...
0 件のコメント
採用された回答
John Chilleri
2017 年 2 月 2 日
編集済み: John Chilleri
2017 年 2 月 2 日
Hello,
Would it be sufficient to:
load('your_file.mat')
Matrix_Name = [Matrix_Name; NaN NaN];
% Get rid of extra workspace variables so they're not also saved:
clearvars -except Matrix_Name
save('your_file.mat')
Hope this helps!
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!