CrazyEngineers
  • How to reduce program execution time in matlab

    Updated: Oct 26, 2024
    Views: 1.0K
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • [Prototype]

    MemberJan 25, 2013

    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.
    Are you sure? This action cannot be undone.
    Cancel
  • sudha madhuri

    MemberJan 25, 2013

    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.
    Are you sure? This action cannot be undone.
    Cancel
  • [Prototype]

    MemberJan 25, 2013

    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.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register