Borrar filtros
Borrar filtros

Corp data in .dat file, not from excel but from figure.

2 visualizaciones (últimos 30 días)
UET Hussain
UET Hussain el 24 de En. de 2018
Respondida: UET Hussain el 8 de Feb. de 2018
I have over 200 .dat files with 10,000 to 50,000 data points. some of the data is useless for me (in-fact troublesome). i want to remove that data but is difficult for me to open the file in excel and remove it manually. is there any method/software that can help me in removing the unwanted data from figure? like in the figure below, the data shown in block boxes is useless (sometimes this unwanted data appears in the middle portion also). any kind of answer will be appreciated.

Respuesta aceptada

UET Hussain
UET Hussain el 8 de Feb. de 2018
I tried many things but best way to wither-off these unwanted portions is to use threshold. here i'm taking 20% as threshold value. As i have both positive and negative sides, hence i used "b = find(amp1<a & amp1>a1);"
if true
a = max(amp1);
a = 0.2*a;
a1 = -1*a;
b = find(amp1<a & amp1>a1);
amp1(b) = 0;
amp1=(amp1(amp1~=0));
end

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by