필터 지우기
필터 지우기

How can i process a csv file to generate a waveform and then do noise removal

조회 수: 56 (최근 30일)
Maidah Zahid
Maidah Zahid 2019년 6월 22일
댓글: Image Analyst 2019년 6월 23일
I made a circuit for audio amplifcation. Gave an input audio signal and observed waveform on oscilloscope. I saved the waveform in .csv format. I have to process the .csv in software to remove noise from signal. Where do i start? Is it possible to convert csv to wav in matlab?
  댓글 수: 1
Image Analyst
Image Analyst 2019년 6월 23일
Unfortunately you forgot ot attach your csv file to your question. So about all I can say to your question is "Yes, you can read in a CSV file and do some noise removal on it, and play it as a sound, and use audiowrite() to save it as a .wav format file."

댓글을 달려면 로그인하십시오.

답변 (1개)

Kilian Liss
Kilian Liss 2019년 6월 22일
First open your cvs file with notepad, and figure out what line your data begins in. So for example, in the following image the data begins at line 32
Capture.PNG
Now you may import your data using the following code. This works for any data file that you can read with notepad. Here fileLoc is the directory that your CSV file is in, ',' indicates that the data points are seperated by commas, and 32 is the line that the data begins in. The data will then be stored in a matrix named 'data'.
fileLoc = 'C:\The\loaction\that\your\file\is\in.csv';
file = importdata(fileLoc, ',', 32);
data = file.data;
For signal smoothing, please refer to the following article:
  댓글 수: 2
Maidah Zahid
Maidah Zahid 2019년 6월 22일
I saved athe file as a matrix. it is a 6000*2double. Can it generate a graph?
Maidah Zahid
Maidah Zahid 2019년 6월 22일
Thanks. I managed to plot a graph. But even after looking at the link you sent me I'm confused about how to process the filter. I will look through it more.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by