function [model, est] = cla_estimate(model, data) Outputs: model: the model itself est: estimation structure Matlab's classify() does everything at once, training and testing. This will obviously compromise time measures.