How to insert NaN at the end of matrix (.mat)
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Eliane Truccolo
le 2 Fév 2017
Commenté : John Chilleri
le 2 Fév 2017
I have a matrix (.mat) with two columns and I want to insert a line of NaN at the end of matrix...
0 commentaires
Réponse acceptée
John Chilleri
le 2 Fév 2017
Modifié(e) : John Chilleri
le 2 Fév 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!