I noticed shadedErrorBar in a loop was rather slow. So I profiled it and it seems it can be easily improve if we don't check for MATLAB Ver all the time.
We can check if enviro is Matlab once and reuse that. Actually saves a couple seconds if running shadedErrorBar in a ~10 iter loop.
Hope this helps someone. First time contributing to someone else's repo.
Hi there!
I noticed shadedErrorBar in a loop was rather slow. So I profiled it and it seems it can be easily improve if we don't check for MATLAB Ver all the time.
We can check if enviro is Matlab once and reuse that. Actually saves a couple seconds if running shadedErrorBar in a ~10 iter loop.
Hope this helps someone. First time contributing to someone else's repo.
LB