導航:首頁 > 文件教程 > 文件已在matlab中打開

文件已在matlab中打開

發布時間:2024-12-31 02:56:00

Ⅰ 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文件直接雙擊,整個世界就亮了!

閱讀全文

與文件已在matlab中打開相關的資料

熱點內容
文件夾書包 瀏覽:367
android判斷xml文件是否存在 瀏覽:701
word2010左邊文字右邊圖片 瀏覽:884
文件放在桌面卻找不到 瀏覽:903
文件名很長會怎樣 瀏覽:541
js獲取文本框的位置 瀏覽:242
源文件名如何定 瀏覽:294
word工具欄的文件圖標在哪裡 瀏覽:297
win10cmd安裝系統文件位置 瀏覽:705
文件拷進u盤亂碼 瀏覽:992
網上恢復數據的哪些網站 瀏覽:800
86版本召喚滿暴擊多少 瀏覽:245
封條樣式圖片文件 瀏覽:198
xsmas如何設置讓網路更快 瀏覽:933
word怎麼刪除符號 瀏覽:785
文件夾圖片名字統一 瀏覽:75
破解收費網站密碼 瀏覽:123
編程組用英文怎麼說 瀏覽:707
android獲取json數據 瀏覽:427
頭條別人發文件過來在哪裡看 瀏覽:922

友情鏈接