quantitativeTEM / StatSTEM

GNU General Public License v3.0
47 stars 25 forks source link

error in windows #7

Closed jinwoung closed 6 years ago

jinwoung commented 6 years ago

Hi I always have this kind of error message when I run the statstem. "Index exceeds dimensions, In RunPeakFinder (line 46) if strcmp(get(h.colorbar(1),'State'),'off')"

I am using windows 10. is there any way to solve this problem?

karelvandenbos commented 6 years ago

I have tested StatSTEM here on windows 10, I don't get this problem. Could you give a little more details:

jinwoung commented 6 years ago

I am using matlab version 2015a. Image loading is fine but every time I click add or execute routine button this error occurs. statstem I attached the screenshot after I load image

karelvandenbos commented 6 years ago

Ok, if you hold your mouse on the colorbar symbol on top (which is highlighted in your image), what text does it show? Mine says "Insert Colorbar" as is shown in the attached screen shot: image

jinwoung commented 6 years ago

Oh, I found what was the problem. This shows 'Insert Colorbar' in other language. Thanks a lot for your help!

karelvandenbos commented 6 years ago

This gives indeed an error, for other users that have this error. You can make StatSTEM work by updating line 213 in StatSTEM.m. Here, you should replace the text "Insert Colorbar" by the text that is shown if you keep your mouse on the colorbar symbol, shown in the figure in my previous comment.