フィルターのクリア

Appearance of small matrix in the workspace and structs

1 回表示 (過去 30 日間)
N/A
N/A 2017 年 3 月 21 日
コメント済み: Jan 2017 年 3 月 21 日
Dear Community,
I was searching the web but couldn't find the right search terms to find the answer even though I think I'm not the first to have this "problem":
By default a small matrix like a 4 x 2 matrix is displayed in structs and the workspace not as "4x2 double" instead with square brackets and semicolons. I would like to display any kind of matrix as "?x? double" or similar and not written-out with brackets and semicolons.
Best
  1 件のコメント
N/A
N/A 2017 年 3 月 21 日
編集済み: N/A 2017 年 3 月 21 日
I tested the behavior:
10 seems to be the limit: 2x5 is displayed in brackets; 2x6 as 2x6 double or 1x10 (brackets) and 1x11 (as 1x11 double)

サインインしてコメントする。

採用された回答

Guillaume
Guillaume 2017 年 3 月 21 日
Unfortunately, there is no option to customise the display of the variable editor.

その他の回答 (2 件)

ES
ES 2017 年 3 月 21 日
>> a = {[4,2;3,1]}
a =
[2x2 double]
You are asking this?
  1 件のコメント
N/A
N/A 2017 年 3 月 21 日
This is the style I would like to have. But in the workspace as beeing a cell, a = {[4,2;3,1]} looks like:
1x1 cell
and a = [4,2;3,1] like:
[4,2;3,1] instead of 2x2 double

サインインしてコメントする。


Jan
Jan 2017 年 3 月 21 日
You can write your own function to display arrays in the wanted style.
  4 件のコメント
N/A
N/A 2017 年 3 月 21 日
okay thanks, thats unfortunate, I marked your answer :)
Jan
Jan 2017 年 3 月 21 日
You can change the display of the workspace browser also, see http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table. But with a limited Matlab knowledge I would suggest not to do this. It is a lot of work and might be incompatible with different Matlab versions. If you really need a specific display, create your own browsing tool and then you have full access to all features.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by