導航:首頁 > 文件教程 > 文件已在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中打開相關的資料

熱點內容
ps3文件分割視頻 瀏覽:280
微信圖片一鍵轉發軟體 瀏覽:331
如何判斷s200plc編程電纜 瀏覽:691
太原編程培訓班哪個好 瀏覽:171
樹葉吹奏教程 瀏覽:6
社交app帶來了哪些社會問題 瀏覽:394
如何安裝愛寶8800數據採集器 瀏覽:712
文件保存了怎麼找不到了 瀏覽:476
彩票網站怎麼辨真假 瀏覽:840
pr找不到該文件 瀏覽:963
java移除panel 瀏覽:354
jsp填充jsp 瀏覽:166
海關外貿大數據在哪裡查 瀏覽:381
思特奇java筆試題 瀏覽:121
葫蘆俠在手機中的文件名 瀏覽:813
plc編程應該怎麼收錢 瀏覽:584
c語言中源文件由什麼組成 瀏覽:890
linuxhttpdphp配置文件 瀏覽:607
拆單數據要怎麼保存 瀏覽:17
mac電腦怎樣壓縮文件到100m 瀏覽:645

友情鏈接