what is the meaning of int16>=int16

5 Ansichten (letzte 30 Tage)
Cyril Pernet
Cyril Pernet am 7 Mär. 2024
Kommentiert: Cyril Pernet am 7 Mär. 2024
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 Kommentar
Dyuman Joshi
Dyuman Joshi am 7 Mär. 2024
The "source=>output" option in fread means that input values are of the type source, and the output is of the type output.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chunru
Chunru am 7 Mär. 2024
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 Kommentar
Cyril Pernet
Cyril Pernet am 7 Mär. 2024
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by