MATLAB: Opening the editor/debugger by double clicking a file.

.m filesassociatedirectorydouble clickMATLAB

Hi all.
I have downloaded Matlab 2017b (I have Windows 10). In order to associate m. files to the application, I clicked on "open with" and selected the MATLAB.exe file from the "Program files/MATLAB/2017b/bin/win64" folder.
My problem is that every time I double click on a file, MATLAB does not go to the editor/debugger, so the only way I have of opening files is starting from the "open" option within the program. In previous versions I was able to double click on a file and the program would open the file directly in the editor/debugger. Any idea of how I can go back to that?
Thanks.