How to create a vector of submultipliers?

1 次查看(过去 30 天)
I want to write some code so that, when I enter a number, I get a vector composed of his sub-multiplier:
example: x=10; vector= [1,2,5,10]
how do you program such a thing?

采纳的回答

Sean de Wolski
Sean de Wolski 2012-8-1
x = 100;
v = (x./(1:x));
v = v(ceil(v)==v)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 System Composer 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by