Precision of datatype complex

Hi,
can someone give me a answer of the precision of a complex value of matlab. is the wohle value double or each part (real,im) ?
kind regards Alex

 채택된 답변

Jan
Jan 2012년 10월 28일
편집: Jan 2012년 10월 28일

2 개 추천

The real and the imaginary parts are stored in a double. Therefore a complex double occupies 2*8 bytes.

댓글 수: 2

Alexander
Alexander 2012년 10월 28일
thanks so far! Do you know a way to store 2*16 in a complex number.
Walter Roberson
Walter Roberson 2012년 10월 28일
편집: Walter Roberson 2012년 10월 28일
Symbolic Math toolbox. Fixed Point toolbox. One of the File Exchange extended precision routines. Or construct your own dataclass.
MATLAB uses hardware floating point for numeric operations. CPUs do not support 16 byte floating point numbers in hardware as yet.
Much of the time if someone needs more than 53 bit precision, they are not making realistic calculations with proper precision and round-off analysis.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

질문:

2012년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by