Hello everyone, I meet a problem with my code. when I run this code below, I get this error :
Error using svd Input to SVD must not contain NaN or Inf.
Error in fxy_I2_5Ddamp_nx_ny>P_RD (line ….)
[U,S,V] = svd(din);
How do I solve this problem ? Thanks.
function [dout]=P_RD(din,N,K)[U,S,V] = svd(din);s = SoftTh(diag(S), 2);j=1:NS=diag(s); for j=1:N S(j,j)=S(j,j)*(1-S(N+1,N+1)^K/S(j,j)^K); end dout=U(:,1:N)*S(1:N,1:N)*(V(:,1:N)');return
Best Answer