フィルターのクリア

how to get the values of K, g , enhance1 for each iteration

5 ビュー (過去 30 日間)
Sapam Jaya
Sapam Jaya 2013 年 11 月 10 日
編集済み: Sapam Jaya 2013 年 11 月 12 日
a=0;b=1.5; ra = a + (b-a).*rand(50,1);
a1=0;b1=0.5; rb=a1 + (b1-a1).*rand(50,1);
a2=0;b2=1; rc=a2 + (b2-a2).*rand(50,1);
a3=0.5;b3=1.5; rk=a3 + (b3-a3).*rand(50,1);
% a=1; % b=.5; % c=1; % k=1.5; iter=1; for i=1:50
K=(rk(i,1).*gMean)./(J+rb(i,1));
g(iter)=K.*(double(ca2)-(rc(i,1).*slidingmean))+(slidingmean).^ra(i,1);%the transformation
enhance1=g.*double(ca2);
iter=iter+1;
end

回答 (1 件)

Image Analyst
Image Analyst 2013 年 11 月 10 日
Make K an array. Use K(i) instead of just plain K.
By the way, you shouldn't vectorize that stuff if you're putting it into a loop. Do one or the other, not both or you're just wasting processing cycles.
  1 件のコメント
Sapam Jaya
Sapam Jaya 2013 年 11 月 12 日
編集済み: Sapam Jaya 2013 年 11 月 12 日
is 'ra' d right method to generate 50 random no between (0,1.5).if not how to do

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by