MATLAB is not deleting requested values.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kommentiert: Reed Smith am 20 Feb. 2023
I want to remove the first couple lines in an excel file as it is irrelevant information. I could do this in excel however, it would be much easier in Matlab as I have a lot of data files to import into Matlab.
Here is my code:
clear, clc, close all
AE_data = readmatrix('file')
AE_data(1:2,:) = ;
For some reason when I run this code it does not delete the rows. When i evaluate the specific line of code it deletes the rows. What am I doing wrong? I cannot figure out why Matlab will not delete these rows.
Sulaymon Eshkabilov am 20 Feb. 2023
Here is one example that shows it works:
D = readmatrix('Data2.xlsx', 'Sheet', 1) % All imported
D(1:2,:)= % Two rows are removed
Weitere Antworten (0)
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!