Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: i want to simplify this code
Replies: 14   Last Post: Apr 22, 2013 7:11 AM

 Messages: [ Previous | Next ]
 mohammed Posts: 18 From: egypt Registered: 12/10/07
Re: i want to simplify this code
Posted: Apr 7, 2013 5:46 PM

thnx too much .. its work now

but i want modify it to work with this formula

All= zeros(size(I));

[x2,y2]=find(S==2);
for n2=1:length(x2)
B1=T2* I(x2(n2):x2(n2)+1,y2(n2):y2(n2)+1)* T2';
F1=T2'*R1*T2;
All(x2(n2):x2(n2)+1,y2(n2):y2(n2)+1)=F1;
end

[x4,y4]=find(S==4);
for n4=1:length(x4)
B2=T4*I(x4(n4):x4(n4)+3,y4(n4):y4(n4)+3)*T4';
F2=T4'*R2*T4;
All(x4(n4):x4(n4)+3,y4(n4):y4(n4)+3)=F2;

end

... etc

Date Subject Author
3/30/13 mohammed
4/6/13 mohammed
4/6/13 dpb
4/7/13 Bruno Luong
4/7/13 mohammed
4/7/13 mohammed
4/7/13 dpb
4/7/13 mohammed
4/7/13 dpb
4/7/13 mohammed
4/7/13 dpb
4/14/13 mohammed
4/22/13 Bruno Luong
4/22/13 Bruno Luong
4/7/13 mohammed