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!