代码搜索结果
找到约 10,000 项符合
E 的代码
e0662.m
ButtonName=questdlg('What is your class?','your class', '2006','2005','2004','2003');
switch ButtonName,
case '2006'
disp('one');
case '2005'
disp('two')
case '2004',
e0643.m
t=(0:127)/128*2*pi;r=ones(size(t));
x=cos(t);y=sin(t);f=abs(fft(ones(10,1),128));r=ones(size(t))+f';
stem3(x,y,f','d','filled')
e0660.m
ErrorString='The data is wrong.';
DlgName='error';
CREATEMODE='none';
errordlg(ErrorString,DlgName,CREATEMODE)
e0650.m
p=get(h_fig,'position')
% 获取h_fig图形对象位置属性
c=get(h_fig,'color')
% 获取h_fig图形对象颜色属性
set(h_fig,'color','w')
%将图形窗口的背景色改为白色
e0618.m
subplot(2,2,1); ezpolar('3*theta');title('1')
subplot(2,2,2); ezpolar('theta/4');title('2')
subplot(2,2,3); ezpolar('exp(2*theta)');title('3')
subplot(2,2,4); ezpolar('exp(2*theta)');title('4')
e0633.m
x=0:0.15:2*pi;y=0:0.15:2*pi;z=sin(y')*cos(x);
mesh(x,y,z);
xlabel('x-axis'),ylabel('y-axis'),zlabel('z-label');title('3-D mesh ');
e0638.m
figure
[X,cmap]=imread('C:\MATLAB7\toolbox\images\imdemos\trees.tif');
%图像文件trees.tif读入工作空间变量X中
image(X); colormap(cmap); %显示数据存放矩阵X的图像
imwrite(X,'ff.jpg','Quality',100) ; %
e0630.m
%方法1:
x=-1:0.05:1;y=x; [x,y]=meshgrid(x,y); z=x.^2+2*y.^2; surf(x,y,z)
%方法2:
syms x y;f=x^2+y^2;ezsurf(f)% -2 ≤x≤2 ,-2 ≤y≤2
%方法3:
ezsurf('x','y','x^2+y^2',[-1,1,-1,1])% -1≤x≤1,-1≤y≤1
e0665.m
hf=figure('Color',[0,1,1],'Position',[100,200,200,300],'Name','This is a three dimentional figure.','NumberTitle','off','MenuBar','none');
uicontrol(hf,'Style','Text', 'Units','normalized', 'Position
e0634.m
x=0:0.1:2*pi;[x,y]=meshgrid(x);z=sin(y).*cos(x);
[I,J]=find(z>0.35);
for ii=1:length(I)
z(I(ii),J(ii))=NaN;
end
surf(x,y,z)