How to insert NaN at the end of matrix (.mat)
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Eliane Truccolo
il 2 Feb 2017
Commentato: John Chilleri
il 2 Feb 2017
I have a matrix (.mat) with two columns and I want to insert a line of NaN at the end of matrix...
0 Commenti
Risposta accettata
John Chilleri
il 2 Feb 2017
Modificato: John Chilleri
il 2 Feb 2017
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!