代码搜索:MATLAB
找到约 10,000 项符合「MATLAB」的源代码
代码结果 10,000
www.eeworm.com/read/483854/6596327
m q808.m
%《MATLAB在电子信息课程中的应用》第八章例8.8程序q808
% 零点对二阶连续系统和离散系统的脉冲响应的影响
% 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月
clear,clf,
wn=1; zeta=0.4; % 设定参数wn, zeta
for Tp=[0.2,1,5] % 设定参数Tp
den=conv([Tp,1],[1,2*z
www.eeworm.com/read/483854/6596388
m q510.m
%《MATLAB在电子信息课程中的应用》第五章例5.10程序q510
% 有受控源的交流电路:戴维南定理
% 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月
clear, format compact
Z1=-j*250;Z2=250;ki=0.5;Is=2; % 设定元件参数
a11=1/Z1+1/Z2;a12=-1/Z2;a13=0; % 设定系数矩阵A
www.eeworm.com/read/483854/6596398
m q813.m
%《MATLAB在电子信息课程中的应用》第八章例8.13程序q813
% 二阶连续和采样系统bode图
% 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月
clear,wn=10;
for zeta=[0.1:0.3:1,]
[n,d]=ord2(wn,zeta);
s1=tf(n*wn^2,d); % 生成二阶连续系统
sd1=c2
www.eeworm.com/read/483854/6596429
m q511.m
%《MATLAB在电子信息课程中的应用》第五章例5.11程序q511
% 有受控源的交流电路:戴维南定理
% 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月
clear, format compact
R1=4;R2=2;R3=2; % 设定元件参数
Xl1=10;Xl2=8;XM=4;Xc=8;
Us=10;Is=10; % 设定信号源参数
Y1
www.eeworm.com/read/482493/6625173
m chgicon.m
function chgicon(h,filename)
%CHGICON changes the figure icon.
% CHGICON(H,FILENAME) changes the icon of a figure to an image specified by
% the string FILENAME, where H is a handle to the figu
www.eeworm.com/read/480529/6665650
txt 08-06.txt
%例8-6 给MATLAB 7的图形添加标题。
>> x = 0:.1:2;
>>y1=sin(x);
>>y2 = sin(x-0.25);
>>y3 = sin(x-0.5);
>> plot(x,y1,'-.b', x,y2,'--r*', x,y3,'-.gh')
>> title('There three lines')
>>
www.eeworm.com/read/480529/6665826
txt 10-41.txt
%例10-41 运行错误的处理。
%编制M文件如下。
function d=yunxingcuowu(a,b,c)
d=a/b;
if isinf(d) %对可能产生的inf值做出判断
sprintf('b should not be 0')
return
else
d=d*c;
end
%为了检验该程序,
www.eeworm.com/read/480294/6672025
m hc721.m
%《数字信号处理教程——MATLAB释义与实现》第七章例7.2.1程序hc721
% 幅频特性与符幅特性的区别
% 电子工业出版社出版 陈怀琛编著 2004年9月
%
clear
b=[-1,2,4,2,-1];a=1; % 给定滤波器系数向量
[H,w]=freqz(b,a); % 求频率特性
subplot(2,2,1),p
www.eeworm.com/read/479998/6674552
m drawgraph.m
function drawgraph(coords)
%DRAWGRAPH Plot a curve from the specified x and y coordinates contained in the coords array.
% DRAWGRAPH (coords) Plots a curve from the specified coordinate values
%
www.eeworm.com/read/479998/6674559
cs plotternative.cs
/*
* MATLAB Compiler: 4.10 (R2009a)
* Date: Wed May 13 09:41:13 2009
* Arguments: "-B" "macro_default" "-W" "dotnet:PlotComp,Plotter,0.0,private" "-d"
* "D:\FDTD_Matlab\学习资料\Matlab_Csharp\PlotComp