function [win_type, win_dur,win_len, hop_ratio, nbins_ratio] = get_win_params(win_choice) win_choice_split = split(win_choice); win_type = win_choice_split{1}; win_len_str = win_choice_split{2}; win_len = str2double(win_len_str); win_dur = win_len/ 8000; switch win_type case 'gauss' hop_ratio = 1 / 4; nbins_ratio = 4; case 'hann' hop_ratio = 1 / 8; nbins_ratio = 2; end end