function varargout = data_plot_scatter_3d(data, idx_fea, confidences=[], flag_text=0) Inputs: data: data structure idx_fea: what features to use. Numbers correpond to columns in data.X confidences: a list of percentages (]0, 1[) for the confidence ellipses flag_text: whether to write the colony codes close to the markers Outputs: [data] [data, handles] handles: handles for the legends