How to implement the following?

1 回表示 (過去 30 日間)
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2012 年 8 月 28 日
How can I implement the following?
x(k + 1)= C [x(k); μ] = x(k)/μ ,if x(k) [0, μ)
(x(k)−μ)/(0.5−μ) , if x(k) [μ, 0.5)
C [1 − x(k); μ] , if x(k) [0.5, 1)
and k = 0,1,2,...n and 0<μ<0.5
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 8 月 28 日
What does C [a;b] mean in this context ?
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2012 年 8 月 28 日
Thats the function of chaotic map.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 8 月 28 日
編集済み: Azzi Abdelmalek 2012 年 8 月 28 日
x=rand(10,1);mu=randi(49,1,1)/100+0.0001% example
for k=1:length(x)-1
if x(k)>=0 & x(k)<mu
x(k+1)=x(k)/mu
elseif x(k)>=mu & x(k)<0.5
x(k+1)=(x(k)-mu)/(0.5-mu)
elseif x(k)>=0.5 & x(k)<1
x(k+1)=(1-x(k))/mu
end
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by