Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort returns an wrong error message for struct #295

Closed
Nelson-numerical-software opened this issue May 1, 2020 · 0 comments
Closed

sort returns an wrong error message for struct #295

Nelson-numerical-software opened this issue May 1, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@Nelson-numerical-software
Copy link
Collaborator

Current behavior:

--> sort(nonreg_tests)

Error: 
Too many dimensions! Current limit is 16.

sort(cell(1,1))

Expected behavior

--> tests_dir = 'd:\developpements\Github\nelson\modules\mex'

tests_dir =

    'd:\developpements\Github\nelson\modules\mex'

--> nonreg_tests = dir([tests_dir, 'bug_*.nls'])

nonreg_tests = 

  0×1 empty struct array with fields:

    name
    folder
    date
    bytes
    isdir
    datenum

--> sort(nonreg_tests)
Undefined function 'sort' for input arguments of type 'struct'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant