how to make a variable as equal input over 30 sections

2 次查看(过去 30 天)
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);

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by