小编gwe*_*dfg的帖子

在matlab中直观地绘制一个无穷大的值

我正在尝试重现Dirac Delta功能:

狄拉克三角洲功能

我的代码:

x = -30:1:30;
y = zeros(1,numel(x)); %sets all values initially to zero
y(x==0)= inf; % the point corresponding to x=0 is set to inf
plot(x,y,'d')
axis([-40 40 0 inf])
Run Code Online (Sandbox Code Playgroud)

我的代码产生:

我的身材

matlab plot matlab-figure

4
推荐指数
1
解决办法
1123
查看次数

标签 统计

matlab ×1

matlab-figure ×1

plot ×1