Instrument recognition system developed in Matlab