Skip to content

Instantly share code, notes, and snippets.

@GuokaiLiu
Last active November 24, 2020 21:07
Show Gist options
  • Save GuokaiLiu/2ec0fd474b02a8ed255f45039cc20606 to your computer and use it in GitHub Desktop.
Save GuokaiLiu/2ec0fd474b02a8ed255f45039cc20606 to your computer and use it in GitHub Desktop.
This is a welcome test.|-|{"files":{"snippetslab":{"env":"python"}},"tag":"Uncategorized"}
file_name = 'N09_M07_F10_K001_1.mat'
kat = sio.loadmat(file_name)[[i for i in kat.keys() if 'N' in i][0]]
sensor = 6 # force:0, current1:1, current2:2, speed:3, torque:4, temperature:5, vibration:6
a = kat['Y'][0, 0][0,sensor][2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment