JoAnCaSo.CoM

Pequeños toques hacen grandes rasgos.

Time on server

08 February 2012 00:22:22

Visitors Statistics

2314

Asociar archivos con Matlab en plataformas Windows

Instalé Matlab sobre un Windows 7 de 64bits, todo bien solo tuve un problema, al finalizar la instalación noté que no se relacionaron los archivos .m que son de uso común en Matlab, así que buscando en la red encontré la siguiente solución.

Códigos para asociar archivos .m a Matlab, este código debe ejecutarse en la ventana de comandos de Matlab.

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.m') ;cd(cwd); disp('Changed Windows file association. M-files are now associated with MATLAB.')

Lo mismo para .fig

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.fig') ;cd(cwd); disp('Changed Windows file association. FIG-files are now associated with MATLAB.')

Ni se diga de los .mat

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.mat') ;cd(cwd); disp('Changed Windows file association. MAT-files are now associated with MATLAB.')

Que decir de los .mdl

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.mdl') ;cd(cwd); disp('Changed Windows file association. MDL-files are now associated with MATLAB.')

Mex-files

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add',['.' mexext]) ;cd(cwd); disp('Changed Windows file association. MEX-files are now associated with MATLAB.')

p-files

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.p') ;cd(cwd); disp('Changed Windows file association. P-files are now associated with MATLAB.')

O mejor aún, TODOS

commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]}); cd(cwd); disp('Changed Windows file associations. FIG, M, MAT, MDL, MEX, and P files are now associated with MATLAB.')

Fuente: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f8-8880.html#f8-28791

Leave a Comment

Write the captcha code you are seeing.

Comment XML feeds: RSS | Atom