Borrar filtros
Borrar filtros

How to create a vector of submultipliers?

1 visualización (últimos 30 días)
Karel
Karel el 1 de Ag. de 2012
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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre System Composer en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by