How to prevent Matlab from rounding small numbers to zero?

5 Ansichten (letzte 30 Tage)
Ali Kareem
Ali Kareem am 14 Okt. 2016
Kommentiert: Walter Roberson am 2 Mär. 2021
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 Kommentare
Image Analyst
Image Analyst am 14 Okt. 2016
You forgot to attach data.xlsx. Please attach it so people can try your code.
Walter Roberson
Walter Roberson am 14 Okt. 2016
When you refer to "The code", are you referring to Mathwork's xcorr or to code that you yourself have written?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Pritesh Shah
Pritesh Shah am 14 Okt. 2016
Check the code once again. You can see code of xcorr function using edit xcorr
  2 Kommentare
Adam Waters
Adam Waters am 2 Mär. 2021
That helped literally no one
Walter Roberson
Walter Roberson am 2 Mär. 2021
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.

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by