[xsim,qual,npc_out,decsim,pca_params] = wmspca(x,level,wname,npc_in) returns a simplified version xsim of the input matrix x obtained from the wavelet-based multiscale principal component analysis (PCA). The wavelet decomposition is performed using the decomposition level level and the wavelet wname.