导航:首页 > 文件教程 > 文件已在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中打开相关的资料

热点内容
网络电视如何清空历史 浏览:53
oppo手机网银收藏在哪个文件夹 浏览:897
linux文件改名命令 浏览:806
word2007插入页码是灰色 浏览:771
uc视频没有缓存文件 浏览:672
气象数据链是什么意思 浏览:375
平板电脑怎么共享电脑文件 浏览:694
linux装的mysql里边没有文件夹 浏览:675
模拟json 浏览:936
三星s6手机视频在哪个文件里 浏览:597
文件夹书包 浏览:367
android判断xml文件是否存在 浏览:701
word2010左边文字右边图片 浏览:884
文件放在桌面却找不到 浏览:903
文件名很长会怎样 浏览:541
js获取文本框的位置 浏览:242
源文件名如何定 浏览:294
word工具栏的文件图标在哪里 浏览:297
win10cmd安装系统文件位置 浏览:705
文件拷进u盘乱码 浏览:992

友情链接