sawtooth.m
来自「matlab7.0这本书的源代码」· M 代码 · 共 6 行
M
6 行
function f=sawtooth(t,To)%SAWTOOTH Sawtooth Waveform Generation.% SAWTOOTH(t,To) computes values of a sawtooth having% a period To at the points defined in the vector t.f = 10*rem(t,To)/To;f(f==0 | f==10) = 5; % must average value at discontinuity!
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?