From: Diem on 23 Jun 2010 13:54 I have a problem with datas from a signal. I would like to remove all the noise from the beginning of the recording. To do so, I thought of specifying the datas in my array I wished to be zeroed. However, MatLab doesn't seem to account for the procedure. This is what the code looks like as of now: s(1:10000)=0; s being the amplitude datas of the signal which counts 45 000 values. I want the first 10 000 values to be zeroed.
From: Steven Lord on 23 Jun 2010 15:18 "Diem " <didi.bui(a)gmail.com> wrote in message news:hvthnt$q4$1(a)fred.mathworks.com... >I have a problem with datas from a signal. I would like to remove all the >noise from the beginning of the recording. To do so, I thought of >specifying the datas in my array I wished to be zeroed. However, MatLab >doesn't seem to account for the procedure. > > This is what the code looks like as of now: > s(1:10000)=0; > > s being the amplitude datas of the signal which counts 45 000 values. I > want the first 10 000 values to be zeroed. Given that s is your data, if I interpret your request: "I want the first 10 000 values to be zeroed." to mean "I want to store 0 in the first 10000 elements of s" then the code to accomplish that request is exactly the code you posted: "s(1:10000)=0;" But I interpret your comment: "MatLab doesn't seem to account for the procedure." to indicate that you are unsatisfied with the results. What about the results is unsatisfactory? Do you expect a different result? Does it warn or error? -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
Pages: 1 Prev: seletion du roi dans une image Next: C++ Compiler for x64 win7 |