Borrar filtros
Borrar filtros

Dividing an interval into smaller intervals and name them.

1 visualización (últimos 30 días)
Eirini Gk
Eirini Gk el 26 de Abr. de 2016
Comentada: Eirini Gk el 26 de Abr. de 2016
Hello, I have an interval and I want to divide it into smaller intervals (lets say n) with the same length and after that 'name' each one of them.
The purpose is to find in which of these intervals belongs a number that I get as a result from another procedure. Is it possible ? (I dont use symbolic tools)

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Abr. de 2016
Editada: Azzi Abdelmalek el 26 de Abr. de 2016
a=1:100
b=mat2cell(a,1,10*ones(1,10))
you have a cell array containing ten intervals
b{1}
b{2}
...
and so on
Giving a different name to each interval is a bad idea

Community Treasure Hunt

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

Start Hunting!

Translated by