Can someone tell me what my mistake is?
1 view (last 30 days)
Show older comments
[A,map]=imread('C:\Users\s514835\Desktop\calvinhobbs.gif');
B=im2double(A);
imshow(B);colormap(gray)
[u,s,v]=svd(B);
C=zeros(size(B));
for j=1:30
C=C+s(j,j)*u(:,j)*v(:,j).';
end
figure
imshow(C,[]);colormap(gray)
drawnow
1 Comment
Stephen23
on 12 Apr 2015
Edited: Stephen23
on 12 Apr 2015
We can't read your mind and "know" what that code "should" do. How do we know what your algorithm is? You need to help us understand by actually explaining what you expect to happen, and what is currently happening with the code that you have.
Answers (1)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!