how to make a variable as equal input over 30 sections

1 vue (au cours des 30 derniers jours)
segun
segun le 21 Avr 2014
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);

Réponse acceptée

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

Plus de réponses (1)

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

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by