필터 지우기
필터 지우기

what is the meaning of int16>=int16

조회 수: 5 (최근 30일)
Cyril Pernet
Cyril Pernet 2024년 3월 7일
댓글: Cyril Pernet 2024년 3월 7일
I am using a function that reads my binary file as
fread(data,int16>=int16)
clearly the output is not the same as saying to read as integer16, but can't quite grasp what matlab does here. Anyone with some insight?
thanks
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2024년 3월 7일
The "source=>output" option in fread means that input values are of the type source, and the output is of the type output.

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

답변 (1개)

Chunru
Chunru 2024년 3월 7일
The following will read data from the file pointed by fid, assuming that the data in the file is of the format int16 and converted the data into int16 for output format. doc fread for more details.
data = fread(fid, "int16>=int16")
  댓글 수: 1
Cyril Pernet
Cyril Pernet 2024년 3월 7일
ok thx for the answer guys, but then if one does not constrain the output, fread(fid,int16) we can endup with float .. ok i see

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

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by