Dear Walter,
thanks for your quick reply.
Unfortunately, the code does not work by showing the following message:
Unable to perform assignment because brace indexing is not supported for variables of this type.
Error in Peaks_TimeTrace_TIRF_new (line 3)
[pks{i},locs{i},widths{i},proms{i}] =
findpeaks(data(:,i+1),x,'MinPeakProminence',40,'Annotate','extents','WidthReference','halfheight ');
Thanks.
Paolo