i have a text file with 1000 set of values having 4 different values in each set. i want o read a set of values for given specfic number
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Bhargavkrishna Kondreddy
am 21 Mär. 2017
Beantwortet: Akira Agata
am 21 Mär. 2017
the txt file in which i attached has 2394 set of values having 4 different values in each set. i want to read a set of value for specfic 'x' value. how can i do that. can anyone please help.Thanking you
0 Kommentare
Akzeptierte Antwort
Akira Agata
am 21 Mär. 2017
How about the following code?
Data = csvread('PIVlab1_1_0002.txt',3); % Ignore first 3 lines
idx = Data(:,1) == 65; % Specific x value (e.g. x = 65)
Data_selected = Data(idx,:); % Extract the data
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!