
Todas estas instrucciones que siguen a continuación se concentran en este archivo: Asociar_Matlab.m
Para asociar TODOS los archivos, basta ejecutar estas instrucciones:
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.']);
Por otra parte, podemos hacerlo de manera individual:
- Archivos *.m
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.']);
- Archivos *.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.']);
- Archivos *.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.']);
- Archivos *.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.']);
Hola Juan Pericás.
ResponderEliminarAl correr el script me sale el siguiente error:
Undefined function or variable 'fileassoc'.
Quisiera saber si es posible que me facilites todas las funciones que involucre el script.
Muchas gracias por tu atención.