How to reduce program execution time in matlab

I am doing speech -music discrimination using matlab as my main project. In that i am having rms module , zcr module and lpc module. For each individual signal i have to calculate all these. There are 4 music signals and 4 speech signals for training and 8 music signals and 8 speech signals for testing . Again I am having classification algorithm . While I am executing my program , I am getting correct output but it is taking around 30 or 45 minutes for that . I am not able to find whether that is due to fault in my program or due to complexity of program. To reduce time I used infinite loop elimination etc. But still I am not able to reduce the execution time. So I am requesting anyone to please help me in-order to get my output in less time. Thanking you. CH.V.S.S.Madhuri

Replies

  • [Prototype]
    [Prototype]
    There could be lots of factor for this problem, the most simplest one could be that your computer isn't good enough.

    If above is not the case, try to find out the block of the code which is taking most time to execute. The first major step in solving any problem is to find what exactly the problem is. The solution will come up eventually.
  • sudha madhuri
    sudha madhuri
    Thank you so much for your response. I also felt the same initially , so i tried around on 3 systems . Still all are taking equal time. Even I am taking files in a few kb size I am somewhat able to reduce the time . But still it is taking 15 min.
  • [Prototype]
    [Prototype]
    sudha madhuri
    Thank you so much for your response. I also felt the same initially , so i tried around on 3 systems . Still all are taking equal time. Even I am taking files in a few kb size I am somewhat able to reduce the time . But still it is taking 15 min.
    Could you write your system specifications? Include Processor, frequency and amount of ram.

    Besides, have you tried to find out which block is taking maximum time? Just create partition in your code and use tik tok command. It'll give you the idea of where the things are going slow.

You are reading an archived discussion.

Related Posts

Hello , I m Arun ,a b.tech 2012 passout . i have been searching for job since since June 2012 in Delhi Ncr . I know Java,J2ee,Android,Php,Drupal,Joomla. I joined a...
I have following questions p=VI If a power generated from a gas turbine is 300 megawatt, then what is the value of V & I in this power, and what...
WHAT IS THE MINIMUM ALLOWABLE SIZE OF GI PIPE CONNECTING TO THE DRAINAGE SPOUT OF FLYOVER (IN RAJASTHAN REGION) AS PER I S CODES .
In a latest move the IIT council last week approved a hike in fees up to an extent of 80% for BTech programs. Still it is claimed that the hike...
I do not know how much of this is hype. But Infosys seems to have done something interesting in this exercise of Pervasive Computing.