shegmite
Member level 1
I need syntax to make z to be increasing and decreasing by 10% over 20 sections as inputs and display 20 outputs as shown below :That is first section z = 220(10% increase) , second section = 198 (10% decrease) and so on.
f = 100;
z = 200 ;% how to make it to be increasing and decreasing by 10% each over 20 sections
b = 2; c = 4;
Y = f*b*c*z;
disp(Y);
f = 100;
z = 200 ;% how to make it to be increasing and decreasing by 10% each over 20 sections
b = 2; c = 4;
Y = f*b*c*z;
disp(Y);
Last edited: