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

热点内容
maya粒子表达式教程 浏览:84
抖音小视频如何挂app 浏览:283
cad怎么设置替补文件 浏览:790
win10启动文件是空的 浏览:397
jk网站有哪些 浏览:134
学编程和3d哪个更好 浏览:932
win10移动硬盘文件无法打开 浏览:385
文件名是乱码还删不掉 浏览:643
苹果键盘怎么打开任务管理器 浏览:437
手机桌面文件名字大全 浏览:334
tplink默认无线密码是多少 浏览:33
ipaddgm文件 浏览:99
lua语言编程用哪个平台 浏览:272
政采云如何导出pdf投标文件 浏览:529
php获取postjson数据 浏览:551
javatimetask 浏览:16
编程的话要什么证件 浏览:94
钱脉通微信多开 浏览:878
中学生学编程哪个培训机构好 浏览:852
荣耀路由TV设置文件共享错误 浏览:525

友情链接