[問題] 有關級數的求解已回收
各位板友好,手頭有ㄧ個關於SIN(t)函數的級數
N2
所求h(t)=summation hn*sin(pi(t-nT)/T)/(pi(t-n*T)/T)
n=N1
其中N1和N2為級數的上下限,hn是與h(t)有關的變數,T是h(t)的週期
亦即N1和N2,hn,Tㄧ開始未定,欲求其級數展開的一般式...
以下是我的小想法:
syms hn t n T1 N1 N2 %設定變數
sin_(t)=sin(pi*(t-n*T1)/T1)/(pi*(t-n*T1)/T1);%定義sin函數
hr_(t)=symsum(hn*sin_(t),N1,N2);%進行級數運算
不過跑出來結果
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'sym'.
請問是哪裡設定上有問題了????
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.40.64.71
→
04/13 21:43, , 1F
04/13 21:43, 1F
→
04/13 21:45, , 2F
04/13 21:45, 2F