From e95444b28f79d3913160aa5b496e84c8075f76e8 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 21 Sep 2020 15:55:27 -0400 Subject: converted from parcellfun to cellfun --- compass_circ.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compass_circ.m b/compass_circ.m index 4673c6a..077821c 100644 --- a/compass_circ.m +++ b/compass_circ.m @@ -132,8 +132,9 @@ fflush (stderr); %kappa_p=cellfun( @susceptibility_steady_state_at_freq, problems_cell_array); %kappa_p=parcellfun(2, @susceptibility_steady_state_at_freq, problems_cell_array); %[xi_linear, xi_left, xi_right]=parcellfun(2, @susceptibility_steady_state_at_freq, problems_cell_array); -total_relative_transmission_vs_phi=parcellfun(2, @total_relative_transmission, problems_cell_array); -%total_relative_transmission_vs_phi=cellfun(@total_relative_transmission, problems_cell_array); +% strangely parcell is slower than cellfun 20 seconds vs 29 +%total_relative_transmission_vs_phi=parcellfun(2, @total_relative_transmission, problems_cell_array); +total_relative_transmission_vs_phi=cellfun(@total_relative_transmission, problems_cell_array); %save 'xi_vs_detuning.mat' detuning_freq xi_linear xi_left xi_right ; problem_cntr--; -- cgit v1.2.3