Matlab 版 (精华区)

发信人: hahn (有奇☆闭关造文中), 信区: Matlab
标  题: [合集] 请教:怎么生成三角波,非锯齿波?(内空)
发信站: 哈工大紫丁香 (Tue Aug 29 18:29:12 2006), 站内

────────────────────────────────────────
  fxqqhd (飞飞)                    于  (Tue May 23 21:30:24 2006)  说道:







────────────────────────────────────────
  feifeifool (爱芳)                于  (Tue May 23 22:38:34 2006)  说道:

这个信号处理方面的matlab书,都有,明天给你查查吧。
【 在 fxqqhd (飞飞) 的大作中提到: 】




────────────────────────────────────────
  fxqqhd (飞飞)                    于  (Wed May 24 08:58:57 2006)  说道:


那谢谢斑竹了

【 在 feifeifool (爱芳) 的大作中提到: 】
: 这个信号处理方面的matlab书,都有,明天给你查查吧。




────────────────────────────────────────
  zjliu (秋天的萝卜)               于  (Wed May 24 09:25:48 2006)  说道:

我写了个函数,你可以用它计算

function [ts,y]=triangle(t,p);
% triangle wave generation
% t is the range of time and has the size 1x2
% p is the period of triangle wave
% Example:
%     [ts,y]=triangle([0,20],2);plot(ts,y)
ts=t(1):p/20:t(2);
y=asin(abs(sin(ts*pi/p)))/pi*2;

【 在 fxqqhd (飞飞) 的大作中提到: 】
: 那谢谢斑竹了




────────────────────────────────────────
  feifeifool (爱芳)                于  (Wed May 24 09:48:02 2006)  说道:

tripuls函数,其他的查查帮助吧,我书上写的也不详细
【 在 zjliu (秋天的萝卜) 的大作中提到: 】
: 我写了个函数,你可以用它计算
: function [ts,y]=triangle(t,p);
: % triangle wave generation
: % t is the range of time and has the size 1x2
: % p is the period of triangle wave
: % Example:
: %     [ts,y]=triangle([0,20],2);plot(ts,y)
: ts=t(1):p/20:t(2);
: ...................





────────────────────────────────────────
  zjliu (秋天的萝卜)               于  (Wed May 24 10:12:32 2006)  说道:

这是我写的另一个版本的三角波生成函数(上升沿和下降沿的比例可调)
http://luobo.yculblog.com/post.1263648.html
【 在 feifeifool (爱芳) 的大作中提到: 】
: tripuls函数,其他的查查帮助吧,我书上写的也不详细




────────────────────────────────────────
  fxqqhd (飞飞)                    于  (Wed May 24 10:37:11 2006)  说道:

谢谢二位斑竹了

【 在 zjliu (秋天的萝卜) 的大作中提到: 】
: 这是我写的另一个版本的三角波生成函数(上升沿和下降沿的比例可调)
: http://luobo.yculblog.com/post.1263648.html




────────────────────────────────────────
  llwwuze (小生)                   于  (Wed May 24 16:22:29 2006)  说道:


【 在 fxqqhd (飞飞) 的大作中提到: 】
可以直接使用toolbox给的锯齿波函数,改变占空比就行了:)





[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.214毫秒