推 Raymond0710:最簡單當然就是for迴圈 12/30 23:06
推 sunev:diff 12/30 23:07
→ DKer:A=[A 0]; B=[0 A]; temp=A-B; dA=temp(2:end-1); 12/30 23:08
→ DKer:B=[0 A]; A=[A 0]; temp=A-B; dA=temp(2:end-1); 12/30 23:10
→ DKer:第二次才對0.0 12/30 23:11
推 Raymond0710:2F的方法 dA=diff(A) 12/30 23:11
→ chen26:已解決 感謝樓上幾位的回答!! 12/30 23:13