フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to manipulate for loop with a changing variable in an expression to get outputs

2 ビュー (過去 30 日間)
segun
segun 2014 年 4 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I need the syntax to make a changing variable *z* output multiply each other sequentially 15 times for each f (for loop) computation as shown below and then display Y for each f stated.
for f = [1 4 8 10];
b = 2; c = 4;
z = 200.*[1.1.*ones(1,1) 0.9.*ones(1,1)];% repeated and multiplied sequentially 15 times for each findings of f
Y = f*b*c*(z1*z2*z3...*z15);
disp(Y); % display Y for f=1,4,8,10
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by