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 Center および File ExchangeCorrelation and Convolution についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by