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

조회 수: 2 (최근 30일)
Lilja Dahl
Lilja Dahl 2016년 2월 11일
댓글: Walter Roberson 2016년 2월 12일
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!

채택된 답변

Walter Roberson
Walter Roberson 2016년 2월 11일
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
Lilja Dahl
Lilja Dahl 2016년 2월 12일
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 2016년 2월 12일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by