Using for loop to iterate through matrix of parameters

2 ビュー (過去 30 日間)
bugatti79
bugatti79 2013 年 9 月 25 日
Hi Folks,
I have produced the following code to calculate G_sl a 3*3 matrix where parameters S_1 and S_2 are 3*1 column vectors
for i=1:size(S_1,1) %
k1=S_1(i,1)
for j=1:3
k2=S_2(j)
G_sl(i,j) = k1.*(D_mean(1,1).^0.82).*(Fr(1,1) + k2.*Y(1,1).*Fa(1,1));
end
end
Now I wish to calculate the matrix T_sl= G_sl.*mu_sl for all values of G_sl but with an additional parameter n where mu_sl=f(n) How do I script to calculate for all values of G_sl along n a 3*1 column vector
Any information will be greatly appreciated. Regards B

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by