求matlab官方的中文文档
Importing and Exporting Data
The first step in analyzing data is to import it into the MATLAB workspace. The Programming Fundamentals documentation provides detailed information about supported data formats and the functions for importing data into the MATLAB workspace.
The easiest way to import data is to use the MATLAB Import Wizard, described in the Programming Fundamentals documentation. With the Import Wizard, you can import the following types of data sources:
Text files, such as .txt and .dat
MAT-files
Spreadsheet files, such as .xls
Graphics files, such as .gif and .jpg
Audio and video files, such as .avi and .wav
The MATLAB Import Wizard processes the data source and recognizes data delimiters, as well as row or column headers, to facilitate the process of data selection.-lab
After you finish analyzing your data, you might have created new variables. You can export these variables to a variety of file formats. The Programming Fundamentals documentation also describes how to export data from the MATLAB workspace.-matlab
MATLAB中plot函数怎么用
你应该是想做拉普拉斯变换后的图像吧。先从MATLAB画图原理来说,MATLAB画图是通过描点画图的,也就是你定义了t的步长是1,上限是150,那么t作为自变量就是要画150个点的,而那个D也就是因变量也应该具备150个点,也就是说两者之间要有函数关系才能画出来。然后这里我没有电脑不方便给你调代码,我写个例子:
-lab
另外,我建议你还是写成脚本或者说.m文件好一点。在命令行里也可以使用help命令查看plot的用法。
matlab图像处理
楼主你太狠了,5分要别人做这么多!
1.图像的读入、显示及信息查询:
(1)I=imread (’lena.jpg’) %图像读入
imshow(I) %图像显示
(2)inf=imfinfo(’lena.jpg’) % 图像信息查询
2.图像的常用处理语句:
(1) X=rgb2gray(I) ; imshow(X) %彩色图像转灰度图像
(2)X2=grayslice(I,64) ; imshow(X2,hot(64)) %将灰度图像转为索引色图像
(3) X3=im2bw(X1) ; imshow(X3) %将图像转二值图像
3.图像滤波:
clear all
g0=imread(’lena.tif’)
g0 = g0(:,:,2); %三维转二维
figure(1);imshow(g0) ;title(’原图’) %如图 5
g1=imnoise(g0,’salt & pepper’,0.2)
g1=im2double(g1);
figure(2);imshow(g1);title(’加入椒盐噪声’) %如图 6
h1=fspecial(’gaussian’,4,0.3)
g2=filter2(h1,g1,’same’)
figure(3);imshow(g2);title(’进行高斯滤波’) %如图 7
h2=fspecial(’sobel’)
g3=filter2(h2,g1,’same’)
figure(4);imshow(g3);title(’进行sobel滤波’) %如图 8
h3=fspecial(’prewitt’)
g4=filter2(h3,g1,’same’)
figure(5);imshow(g4);title(’进行prewitt滤波’) %如图 9
h4=fspecial(’laplacian’,0.5);
g5=filter2(h4,g1,’same’);
figure(6);imshow(g5);title(’进行拉普拉斯滤波’); %如图 10
h5=fspecial(’log’,4,0.3);
g6=filter2(h5,g1,’same’);figure(7);
imshow(g6);title(’进行高斯拉普拉斯滤波’); %如图 11
h6=fspecial(’average’);
g7=filter2(h6,g1,’same’);figure(8);
imshow(g7);title(’进行均值滤波’); %如图 12
h7=fspecial(’unsharp’,0.3);
g8=filter2(h7,g1,’same’);
figure(9);imshow(g8);title(’进行模糊滤波’); %如图 13
h8=[0 -1 0;-1 5 -1;0 -1 0];
g9=filter2(h8,g1,’same’);
figure(10);imshow(g9);title(’进行高通高斯滤波’); %如图 14
h9=g1;g10=medfilt2(h9);
figure(11);imshow(g10);title(’进行中值滤波’); %如图 15
-matlab