How can i tell the fdatool computing time?

hi, i'd like to time the fdatool copmputing time for finding the filter coefficients. how is it possible?
i have a matlab code for a fir filter and i use tic;toc to find the time it takes to compute the filter coefficients. i would like to know the time difference between the fdatool and my code.
i do know that the fdatool has the fvtool in it, so if i do get a way to find the fdatool time, should i compare it to the time of my code+fvtool? i.e tic; h=filter(..); fvtool(h); toc

 Accepted Answer

This seems to be an unfair comparison because FDATool is a graphical interface so it loads many more things compared to a simple fir filter script in MATLAB. If you just want to test the filtering performance, I'd suggest you to generate MATLAB code from FDATool and then insert tic/toc in the script where it performs the filtering. HTH

More Answers (0)

Asked:

on 14 Nov 2013

Commented:

on 14 Nov 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!