for computing ERSP at the single dataset level, you should use the newtimef function. The std_ersp.m function is for STUDY. As outlined in the function documentation, by default the function processes ICA components. To make it process data channels, you have to provide them as input.