필터 지우기
필터 지우기

Display 4D double size with Editor datatips

조회 수: 2 (최근 30일)
Olivier Roy
Olivier Roy 2023년 10월 31일
편집: Matt J 2023년 10월 31일
For ease of navigation, I would like to use the Editor datatips feature to get the size of a 4D double matrix. I noticed that if the matrix is double, the datatips displays "4-D double". If it is single precision, it correctly displays the size of the array. Is there a custom settings to change this behavior? Is it intended as such?
  댓글 수: 2
Catalytic
Catalytic 2023년 10월 31일
Change the behavior to what?
Olivier Roy
Olivier Roy 2023년 10월 31일
편집: Olivier Roy 2023년 10월 31일
To, as the title suggests, "display [the] 4D double [matrix] size [by hovering over with] the Editor datatips".

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

답변 (1개)

Matt J
Matt J 2023년 10월 31일
편집: Matt J 2023년 10월 31일
If you mean you want the dimensions displayed in the form AxBxCxD, I don't think there is any way to have the Editor datatip do so. However, there is a version of whos() on the File Exchange that will do it,
M=rand(3,4,5,6,2);
>> whos M
Name Size Bytes Class Attributes
M 5-D 5760 double
>> Whos M
Name Size Kilobytes Class Attributes
M 3x4x5x6x2 5.625 double
  댓글 수: 1
Olivier Roy
Olivier Roy 2023년 10월 31일
That is indeed what I want. It's weird that it displays correctly for single-precision but no for double-precision ones. The Whos functions from FileExchange is interesting.

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by