Re: Calculate MACs in MATLAB



I am doing a project in matlab to compare the computational complexities
of
two systems the problem I have is that I need to work out how many
multiply
and adds a 150 point ifft uses in matlab from what I can work out
MATLAB
uses the Prime Factor algorithm to do this but I am having trouble
working
out how many MACS are done. Does matlab have the ability to feed back
this
information?

Thanks

Pikey


Well, MATLAB used to allow you to calculate the number of flops
(floating
point operations), but as the help on flops indicates, since the
inclusion
of LAPACK it is no longer practical. You can time the two functions
using
tic (before the function call) and toc (after the function call) and
compare times, which should give you an approximation of relative
complexity assuming the arrays have the same memory structure.

Mark
Agree the tic toc is useful but I am doing one method by hand and the
other practically on matlab so I can't use it.

Pikey

.



Relevant Pages