Ⅰ matlab成功安裝後 到哪打開啊 怎麼沒有那種打開的圖標
打開具體步驟如下:
1、在下載的的安裝包中找到matlab的安裝文件,打開之後,如圖所示的以下文件夾。
Ⅱ 想用matlab打開一個文件夾,然後自己選取文件夾中一幅圖像讀取
[filename,pathname]=uigetfile('*.jpg','讀取圖片文件');%選擇圖片文件
ifisequal(filename,0)%判斷是否選擇
msgbox('沒有選擇任何圖片');
else
pathfile=fullfile(pathname,filename);%獲得圖片路徑
M=imread(pathfile);%將圖片讀入矩陣
image(M);%繪制圖片
end
Ⅲ matlab如何用命令打開文件
在matlab中打開文件的幾種方法如下:
1、load
(1)load:
如果matlab.mat存在,則導入.mat中的所有變數,如果不存在則返回error。
(2)load
filename:
將filename中的全部變數導入到工作區中
(3)load
filename
XYZ:將filename中的變數X,Y,Z導入到工作區中,如果是MAT文件,在指定變數時可用通配符「*」
2、whos
-file
matlab.mat
3、importdata
與load函數不同,將文件中的數據已結構體方式寫入
(1)importdata('filename')
(2)A=importdata('filename')
4、open
Matlab使用open打開各種格式的文件,自動根據擴展名選擇相應的編輯器。
open('filename'):
以結構體的方式打開在工作區中,與importdata('filename')類似;而load('filename')將文件中的變數導入工作區中,如果要訪問其中的內容,需要以不同的格式進行。
5、從xls中讀取數據
data1=xlsread('c:\users\file1.xls')
無論07版的xlsx還是03版的xls都用xlsread讀。
Ⅳ 不知道怎麼弄的,無法直接雙擊打開m文件了(雙擊後只是啟動了matlab,沒有打開文件),只能在matlab里打開
注意最新版的matlab,用右擊.m文件打開然後查找文件關聯到meditor.exe,你是找不到matlab安裝程序下的編輯器程序的,而只能找到matlab.exe之類的無效關聯。所以不如索性用help裡面自帶的辦法:
打開matlab,然後打開help窗口,然後打開help目錄找到第一個條目Matlab-》User's Guide->Desktop Tools and Development Environment ->Start up and Shutdown->Starting and Quitting the MATLAB Program:然後查看右邊窗口的內容部分,點擊Starting the MATLAB Program on Windows Platforms鏈接,窗口跳到下面點擊Associating Files with MATLAB on Windows Platforms鏈接,然後窗口往下拉找到如下內容:
==========================================================================
Utilities to Set Up File Associations on Windows Platforms. If you are viewing this topic in the MATLAB Help browser, you can run one of the utilities provided here to create associations in the Windows environment for common file types used by MATLAB. This requires you to have permission to write to the HKEY_CLASSES_ROOT registry key, which typically requires power user or administrator privileges.
*
Run utility to associate files with .fig extension with MATLAB
*
Run utility to associate files with .m extension with MATLAB
*
Run utility to associate files with .mat extension with MATLAB
*
Run utility to associate files with .mdl extension with MATLAB
*
Run utility to associate MATLAB with MEX-files
*
Run utility to associate MATLAB with P-files
*
Run utility to associate MATLAB with all of these file types: FIG, M, MAT, MDL, MEX, and P
The file type icon in the Windows Explorer tool might not reflect the change immediately.
=====================================================
直接點擊上面這個鏈接 Run utility to associate files with .m extension with MATLAB就ok了。然後回到windows下隨便找個.m文件直接雙擊,整個世界就亮了!