How to delete row or column in x.mat file
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I have a X.mat file, its big mat file.
how can i delet the rows ( specific row ) !! for example;
row : 600 to 3000 delete
or column 25 to 35 delete
I tried The code below but did not work :
X = importdata('X.mat');
X([501,2000],:) = [];
0 Commenti
Risposta accettata
Ameer Hamza
il 22 Ott 2020
Modificato: Ameer Hamza
il 22 Ott 2020
Does X.mat file only have one variable? In that case, try
X(501:2000,:) = [];
%^ put : here
Also, If the variable is very large, then it may be faster to modify the mat file without loading directly
data = matfile('X.mat', 'Writable', true);
data.X(501:2000,:) = [];
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Structures 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!