how to import data with format: >(number) into matlab

2 visualizaciones (últimos 30 días)
Lilja Dahl
Lilja Dahl el 11 de Feb. de 2016
Comentada: Walter Roberson el 12 de Feb. de 2016
I really want to know if it is possible to define ex. >0.5 in matlab as >0.5 and not 0.5 when I import data.
Thanks!

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Feb. de 2016
Not in a pure numeric array: pure numeric arrays have no way of storing the '>'.
What would be possible is to add a column to the array and set the column to 1 to indicate that the other column was greater than 0.5.
  2 comentarios
Lilja Dahl
Lilja Dahl el 12 de Feb. de 2016
I understand, thank you. Some numbers in my column contain number <0.5 and would it be possible to define it as random number(normal distributed) between 0-0.5?
Walter Roberson
Walter Roberson el 12 de Feb. de 2016
No, normal distribution is always infinite range in both directions. It gets computationally messy to work with truncated normal distributions, at least if you care about mathematical accuracy.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by