Azzera filtri
Azzera filtri

how to make a variable as equal input over 30 sections

2 visualizzazioni (ultimi 30 giorni)
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);

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by