フィルターのクリア

how to find T(i+1) when we have series of data .

2 ビュー (過去 30 日間)
Engineer Batoor khan mummand
Engineer Batoor khan mummand 2020 年 10 月 10 日
Hi all;
how to find T(i+1) for each day of s values.
i can import data but i have problem in loop i mean to find values of T(i+1) for each values of S?
thanks in advance from all of u,

採用された回答

KSSV
KSSV 2020 年 10 月 10 日
From your formula you can write the following for T(i+1)
T(i+1) = k*S*(Tb-T(i))+T(i) ;
Define your k, S, Tb and intialize your T with intiial value and run a loop.
k = rand ; % give your value
S = rand ; % give your value
n = 100 ;
T = zeros(n,1) ;
T(1) = 3. ; % initial value of T
for i = 2:n
T(i) = k*S*(Tb-T(i-1))+T(i-1) ;
end
  11 件のコメント
KSSV
KSSV 2020 年 10 月 14 日
Ys....it will trhow error..I have modified the answer...please check ..
Engineer Batoor khan mummand
Engineer Batoor khan mummand 2020 年 10 月 14 日
編集済み: Engineer Batoor khan mummand 2020 年 10 月 14 日
I have done thank you so much Dear KSSV for your helping .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by