%% Function to customise the output
function [data, res] = bddat_slot_func_gp_3p(~, data, command, sol)

switch command
    case 'init'
        res = {'sol'};
    case 'data'
        u = sol.x(1:3);
        plot3(data.ax, u(2), u(3), u(1), 'r.');
        drawnow;
        res = {u};
end

% res = {};