how to make a variable as equal input over 30 sections

1 view (last 30 days)
f = 100;
z = 0.5 ;% how to make it as equal inputs over 30 sections
b = 2; c = 4;
Y = f*b*c*z;
disp(Y);

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 21 Apr 2014
f = 100;
z = 0.5*ones(1,30)
b = 2;
c = 4;
Y = f*b*c*z;
disp(Y);

More Answers (1)

Mischa Kim
Mischa Kim on 21 Apr 2014
Segun, do you mean
z = linspace(0,0.5,30)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!