m file problem

  • Follow


I am using MATLAB 2010b on  windows 7 x64. But the matlab can't recognize .m and .mat file. ever time, I double click on .m file, it just open another matlab. 
How can I fix it?
0
Reply DIA 9/18/2010 9:12:05 PM

Hi,

Try to change file type

Go to 
my computer 
--> Tools
 --> Folder options
  --> Files type
go to m and delete it
push add new and add m
go to the details for 'M' file extension
push change and choose matlab to be the program which opens the files.

Good luck,
Ditza
0
Reply DitzaN 9/19/2010 11:14:07 AM


"DIA D." <poovich@mavs.com> wrote in message <i739v5$b6r$1@fred.mathworks.com>...
> I am using MATLAB 2010b on  windows 7 x64. But the matlab can't recognize .m and .mat file. ever time, I double click on .m file, it just open another matlab. 
> How can I fix it?

Hi, Don't double click on the .m file, or .mat file. In the MATLAB session you have running already, make sure that the directory (folder) where the .m file and .mat file are located is in the MATLAB path. Assume this folder is c:\data

Enter:
>>addpath 'c:\data'

Then just load the .mat file from the command line. See the help for load.

You can also just run the .m file.

Wayne
0
Reply Wayne 9/19/2010 11:29:04 AM

Run this in 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.');
0
Reply nm3210 9/29/2010 3:35:39 AM

3 Replies
340 Views

(page loaded in 0.188 seconds)

Similiar Articles:













7/20/2012 4:48:22 AM


Reply: