代码搜索:MATLAB
找到约 10,000 项符合「MATLAB」的源代码
代码结果 10,000
www.eeworm.com/read/304826/13786161
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/304351/13795628
m exn842a.m
%《MATLAB及其在理工课程中的应用指南》(十一五规划版)第八章例8-4-2程序a
% Smith阻抗圆图的绘制(复数绘图方法)
% 西安电子科技大学出版社出版 陈怀琛编著 2007年7月
%
% 直接用复数绘制Smith圆图
p = logspace(-2,2);
% q=logspace(-2,1,10);
q = [eps,0.05,0.1,0.2,0.5,1,2,5,10
www.eeworm.com/read/304351/13795661
m exn513.m
%《MATLAB及其在理工课程中的应用指南》(十一五规划版)第五章例5-1-3程序
% 曲线族的绘制
% 西安电子科技大学出版社出版 陈怀琛编著 2007年5月
clear,clf
x=-2:0.1:2; % 给定x数组,确定范围及取点密度
subplot(1,2,1) % 分两个画面绘图
for c=-3:3
plot(x,x.^3+c*x),ho
www.eeworm.com/read/304351/13795662
m exn532t.m
%《MATLAB及其在理工课程中的应用指南》(十一五规划版)第五章例5-3-2
% 用平行截面分析空间曲面
% 西安电子科技大学出版社出版 陈怀琛编著 2007年5月
%
clear, n1=input('n1= '); syms k,
for n=1:n1 s1(n)=symsum(1/k^2,1,n);end,
plot(1:n,double(s1)),hold on
for
www.eeworm.com/read/304351/13795663
m exn532a.m
%《MATLAB及其在理工课程中的应用指南》(十一五规划版)第五章例5-3-2a
% 用符号数学求数列前有限项的和
% 西安电子科技大学出版社出版 陈怀琛编著 2007年7月
%
clear, close all
n1=input('n1= '); syms k,
for n=1:n1 s1(n)=symsum(1/k^2,1,n);end,
plot(1:n,double(s1
www.eeworm.com/read/304351/13795677
m exn911.m
%《<mark>MATLAB</mark>及其在理工课程中的应用指南》(十一五规划版)第九章例9-1-1程序
% 连续信号的<mark>MATLAB</mark>表述
% 西安电子科技大学出版社出版 陈怀琛编著 2007年7月
%
clear, t0=0;tf=5;dt=0.05;t1=1; t=[t0:dt:tf];
% (1)单位脉冲信号,
% 在t1(t0≤t1≤tf)处有一持续时间为dt,面积为1的脉冲信号,其余时间均为零。
...
www.eeworm.com/read/304351/13795794
m exn546.m
%《MATLAB及其在理工课程中的应用指南》(十一五规划版)第五章例5-4-6程序
% 三重积分
% 西安电子科技大学出版社出版 陈怀琛编著 2007年7月
%
clear, close all
dx=0.01;dy=dx;dz=dx;x=0:dx:1;
for k=1:length(x)
x1=(k-1)*dx;
y=0:dy:x1;
for j=1:len
www.eeworm.com/read/304061/13802253
txt 例1.14.txt
例1.14 help命令。
>> help % 在命令窗口直接输入help命令,显示在线帮助纵览。
HELP topics:
matlab\general - General purpose commands.
matlab\ops - Operators and special characters.
matlab\lang - Pr
www.eeworm.com/read/303758/13809637
dat bookinfo.dat
[General Information]
书名=MATLAB神经网络仿真与应用
作者=
页数=330
SS号=0
出版日期=
www.eeworm.com/read/303558/13812552
m ip_01_01.m
% MATLAB script for Illustrative Problem 1, Chapter 1.
clear
n=[-20:1:20];
x=abs(sinc(n/2));
stem(n,x);