How to prevent Matlab from rounding small numbers to zero?

조회 수: 5 (최근 30일)
Ali Kareem
Ali Kareem 2016년 10월 14일
댓글: Walter Roberson 2021년 3월 2일
Hi,
I am trying to find cross-correlation without using function
xcorr
The code works for large numbers. However, for small numbers the code fail. It's round small numbers to zero. I tried to use
format longE
But it is not working. Any help will be very appreciated.
Thanks
  댓글 수: 2
Image Analyst
Image Analyst 2016년 10월 14일
You forgot to attach data.xlsx. Please attach it so people can try your code.
Walter Roberson
Walter Roberson 2016년 10월 14일
When you refer to "The code", are you referring to Mathwork's xcorr or to code that you yourself have written?

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

답변 (1개)

Pritesh Shah
Pritesh Shah 2016년 10월 14일
Check the code once again. You can see code of xcorr function using edit xcorr
  댓글 수: 2
Adam Waters
Adam Waters 2021년 3월 2일
That helped literally no one
Walter Roberson
Walter Roberson 2021년 3월 2일
When people are for some reason not permitted to use a particular function, then they can still often get an understanding of how the function works by using "edit" with the function name.

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

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by