MATLAB 2014 - Change workspace sorting

4 ビュー (過去 30 日間)
Christian
Christian 2015 年 3 月 4 日
編集済み: per isakson 2015 年 3 月 5 日
Hello, in older MATLAB Versions, the workspace sorting of "sort by name" is based on the ASCII number:
A
B
C
a
b
c
In MATLAB 2014b, the sorting appears like
a
A
b
B
c
C
Is there a possibility to change the sorting to the old preference?

回答 (3 件)

per isakson
per isakson 2015 年 3 月 4 日
I'm surprised not to find a 'legacy' option in sort, Sort array elements. With vectors there is a simple work around
>> str = 'AaBbCc';
>> [~,ixs]=sort(double(str));
>> str(ixs)
ans =
ABCabc

Abhishek GS
Abhishek GS 2015 年 3 月 4 日
Hi Christian,
There is no option to change the sorting to the old preference.
Looks like this was a design choice by the development team so that the sorting of variables in the workspace would follow the same order as the sorting of variables in the detail panel. In MATLAB R2014a and later, variables are sorted by alphabetical order first, and lower case variables appear before upper case variables in case of a conflict.

Christian
Christian 2015 年 3 月 5 日
Is there no command to change the sorting logic in the workspace panel?
  1 件のコメント
per isakson
per isakson 2015 年 3 月 5 日
編集済み: per isakson 2015 年 3 月 5 日
You don't take no for an answer. Not according to to the documentation of Matlab.

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

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by