How to generate sequence integers between two ranges?

5 visualizaciones (últimos 30 días)
Andre
Andre el 3 de Abr. de 2014
Editada: dpb el 3 de Abr. de 2014
Hi,
how can I generate sequenced integer numbers between two floats ?
Example 1:
Ranges: [93.9688 96.9688] Output: [93.9688 94 95 96.9688]
Example 2:
Ranges: [3.025 6.95] Output: [3.025 4 5 6 6.95]
Andre

Respuesta aceptada

dpb
dpb el 3 de Abr. de 2014
Editada: dpb el 3 de Abr. de 2014
a=[a(1) floor(a(1))+1:floor(a(end)) a(end)];

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by