shegmite
Member level 1
- Joined
- Apr 8, 2012
- Messages
- 33
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,496
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: