MatLab常用函数
1.声明一个如下分段函数:x[n]={n,0<=n<=52n+1,otherwise x[n] =\begin{cases}n, & \text{0<=n<=5} \\2n+1, & \text{otherwise}\end{cases}x[n]={n,2n+1,