JimHokanson / matlab_standard_library

Standard Library for my Matlab Projects
MIT License
8 stars 10 forks source link

heads up display option - show line by order of operations #40

Open JimHokanson opened 7 years ago

JimHokanson commented 7 years ago

I just spent way too long trying to pick out parentheses, it would be nice to have something like this ...

a =((bc)+(de+f))*(g + h))

shown as

     (b*c)                (d*e+f)

            (b*c) +(d*e+f)              (g + h)

                   ((b*c)+(d*e+f))*(g + h))
JimHokanson commented 7 years ago

Here's something I was screwing up while debugging:

median(d(wtf3(:,2))-d(wtf3(:,1)).*dx(wtf3(:,2)-wtf3(:,1)))

                                                                    wtf3(:,2)-wtf3(:,1)

                            wtf3(:,1)                     dx(wtf3(:,2)-wtf3(:,1))

                               d(wtf3(:,1)) .* dx(wtf3(:,2)-wtf3(:,1))

            d(wtf3(:,2)) - d(wtf3(:,1)).*dx(wtf3(:,2)-wtf3(:,1))

whereas I really wanted to have:

    (   d(wtf3(:,2)) - d(wtf3(:,1))   )    .*  dx(wtf3(:,2)-wtf3(:,1))