Ok, I was using this function textread, It’s weird that the file path can not start with ‘~’, the path must start with the full path, like /home/user/bla/blabla.sift, or matlab will just give you the error note: “Error using dataread, file not found or permission denied”.

I google this for a little while to get the solution, so just take a note here. Even though matlab suggest to use textscan other than textread, I’m just too lazy to change…