how to detect speed breaker in a road using matlab?
It depends on the implementation of the speed breaker. Then can be knobs of less than a centimeter in the pavement, a bump over street of 10 centimeters, road signs, a display showing the current speed.
To consider all of them efficiently with a low error rate I suggest the following: Buy a commercial Matlab version, ask a student to sit on the passenger seat, offer Matlab as payment when the student mentions all speed breakers.
I'm not kidding. I'm physicist and this is seriously the best answer yet. When you want something more technical, please define the problem with any details. But I claim, that it is not useful from a global point of view to bother Matlab, when the job is trivial for humen. A two year old child will be better than the most intelligent Matlab program.