Generally, Classifier will result as, test image belongs to which class. But I wanted to know can we use classifier to locate one object in given test image using matlab.
Can we train classifier to detect or locate object? how?
You need to define better the scope of your application. First, what kind of objects are you aiming to detect. From the answer to this question, you need to define the image decriptors to use (edges, colors, textures, etc). Then you can use such features as an input to a SVM or any other trained classifier.
For instance you can look for papers related to pedestrian detection, where a SVM is used, with Histogram of Gradients (HOGs) for human shape detection.