フィルターのクリア

Code for a delay difference equation

1 回表示 (過去 30 日間)
Sk. Sarif Hassan
Sk. Sarif Hassan 2015 年 3 月 27 日
Here is the difference equation:
x_{n+1}=[p*x_{n-l}+x_{n-k}]/[q+x_{n-k}]
Can anyone help me to code it to get the sequence with corresponding plots. Here p, q, and l, k are all positive integers. and l is different from k.
I tried as follows:
p=randi([0,100]);
q=randi([0,100]);
l=randi([0,100]);
k=randi([0,100]);
z0=randi([0,100]);
z1=randi([0,100]);
s=5000;
for n=1:s
Z=Unable to define;
z0=z1;
z1=Z;
Zarray(n)=Z;
end
end

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by