Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to solve the problem of noise using weighted values?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a voltage signal for 11 cycles. Each cycles has 32 samples of data. I was trying to reconstruct the signal using the following equation.I have to find the coefficients
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427468/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427473/image.png)
where
is the time of the downsampled data. I tried to solve the problem by using the follwoing equation.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427478/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427483/image.png)
Where, X is the array of the coefficinets, A is the matrix at follwoing form
. Y is the values of the voltage samples.
is the transpose of matrix A and W is the weighted values. I tried to use the backslash command which results in x=A\Y. The results are accurate. However, I need to implement the weighted equation given in equation (2) to solve for X. I tried every command but it did not work.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427488/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427493/image.png)
댓글 수: 1
Ashutosh
2023년 7월 6일
Hey, have you tried something like:
mat = A' * W * A;
X = inv(mat) * A' * W * Y;
That is, using the inv() function of MATLAB to find the inverse?
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!