Skipping error in for-loop

前端 未结 3 1198
闹比i
闹比i 2020-11-27 10:39

I am doing a for loop for generating 180 graphs for my 6000 X 180 matrix (1 graph per column), some of the data don\'t fit my criteria and i get the error:



        
3条回答
  •  离开以前
    2020-11-27 11:09

    Instead of catching the error, wouldn't it be possible to test in or before the myplotfunction() function first if the error will occur (i.e. if the breaks are unique) and only plot it for those cases where it won't appear?!

提交回复
热议问题