필터 지우기
필터 지우기

how to convert the float into binary ?? the float values are audio samples and also the negative values are there

조회 수: 15 (최근 30일)
[x,fs] = wavread('C:\Users\hp\Desktop\ee.wav'); the valuess of in 26121*1double.... float2bin is not working for the double it produce the error as undefined function'float2bin'for the input arguments of double
  댓글 수: 2
Stephen23
Stephen23 2015년 1월 11일
MATLAB does not have an inbuilt function named "float2bin". Where did you find this function? Did someone give it to you or did you write it yourself?
hemalatha
hemalatha 2015년 1월 11일
they are write foalt2bin as a function..sorry i didn't note that

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

채택된 답변

Stephen23
Stephen23 2015년 1월 11일
This is an ill-defined problem, unless you specify what encoding method you want. And MATLAB does not have an inbuilt function named "float2bin", which is why you are getting this error. This is a topic that has been discussed before on MATLAB Answers, and even some other forums:
Although it is important to note that the problem is ill-defined, because "There is no one right answer on how to represent a fractional number in binary" (quoted from Peter at the last link).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by