Distance-Time data extraction
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have got distance-time data, I wanted to know how to extract distance data at cut-off of </= 0.5 nm and the corresponding times? I have attached the text file to this question. I hope soemone will be able to direct me into the right direction.
Thank you in advance,
Akash
댓글 수: 2
Bob Thompson
2019년 2월 20일
It is generally considered much simpler to load the entire file into matlab and then remove the excess data with logic indexing. It should look something like this.
data = dlmread('Minimumdistance.txt');
data = data(data(:,1)<=0.5,:);
답변 (2개)
Jake Santiago
2019년 2월 25일
data = dlmread('Minimumdistance.txt');
data = data(data(:,1)<=0.5,:);
As Bob suggested, this would probably work for you.
Do elaborate your problem a little more if you still having trouble.
Dhanashree Mohite
2019년 2월 27일
As per my understanding, as (distance<=0.5nm) and distance is 2nd column, so it should be:
data = dlmread('Minimumdistance.txt');
data = data(data(:,2)<=0.5,:);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!