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 6:50 PM

i did as u did but all my problem is put this items inside the loop
T0=dctmtx(1);
T2 = dctmtx(2);
T4 = dctmtx(4);
T8 = dctmtx(8);
T16 = dctmtx(16);
T32 = dctmtx(32);
T64 = dctmtx(64);

when i put it in for loop it give me error

In an assignment A(I) = B, the number of elements in B and
I must be the same.

dpb <none@non.net> wrote in message <kjsrs0\$fdl\$1@speranza.aioe.org>...
> On 4/7/2013 4:46 PM, mohammed wrote:
> > thnx too much .. its work now
> > but i want modify it to work with this formula

> ...
>
> Well, you saw what I did above; whether you can do something similar in
> general depends, of course, on what it is that you're changing.
>
> I think I'll let you show some attempts to generalize the thought
> process Bruno and I have shown you rather than just write more code for
> you directly...
>
> When you get stuck on a particular idea/implementation/Matlab question
> in doing so, post it and your work and we'll go from there....
>
> --

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