It_last_pos_idx=3, it_first_neg_idx=NaN, it_first_neg_last_neg_seg_idx=NaN It_last_pos_idx=2, it_first_neg_idx=3, it_first_neg_last_neg_seg_idx=3 ', it_first_neg_last_neg_seg_idx=' num2str(it_first_neg_last_neg_seg_idx)]) ', it_first_neg_idx=' num2str(it_first_neg_idx). If (isempty(it_first_neg_last_neg_seg_idx))ĭisp(['it_last_pos_idx=' num2str(it_last_pos_idx). įind(ar_alpha_sum_after_last_pos < 0, 1, 'first') It_first_neg_last_neg_seg_idx = it_last_pos_idx - 1 +. % Find first negative of last negative segmentĪr_alpha_sum_devi_one(it_last_pos_idx:length(ar_alpha_sum_devi_one)) It_first_neg_idx = find(ar_alpha_sum_devi_one < 0, 1, 'first') It_last_pos_idx = find(ar_alpha_sum_devi_one > 0, 1, 'last') Find the first element of the final segment of negative numbers. There is an array with some negative numbers, then some positive numbers, then some negative numbers again. 1.2 First the First Negative Element of Last Segment of Array
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |