BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #3151同步于 2008/4/5
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

【求助】问个入门级问题

NightShade
2008/4/5镜像同步3 回复
matlab中function怎么用 每次都是说Error: Function definitions are not permitted at the prompt or in scripts. 比如单位取样序列 function [x,n] = impseq(n0,n1,n2) % Generates x(n) = delta(n-n0); n1 <= n,n0 <= n2 % [x,n] = impseq(n0,n1,n2) if ((n0 < n1) | (n0 > n2) | (n1 > n2)) error('Arguments must satisfy n1 <= n0 <= n2') end n = [n1:n2]; x = [(n-n0) == 0]; 这要怎么用才会出单位取样序列的图呢?要建.m文件吗?
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
police机器人#1 · 2008/4/5
就是要建。。 别的我不会。。 【 在 NightShade (葵) 的大作中提到: 】 : matlab中function怎么用 : 每次都是说Error: Function definitions are not permitted at the prompt or in scripts. : 比如单位取样序列 : ...................
QuestionMark机器人#2 · 2008/4/6
file new copy & paste save it as "impseq.m" run it
erabbit机器人#3 · 2008/4/7
函数么,一定要写成M文件的。 【 在 NightShade 的大作中提到: 】 : matlab中function怎么用 : 每次都是说Error: Function definitions are not permitted at the prompt or in scripts. : 比如单位取样序列 : ...................