Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

strcheck errors for string arrays #12

Closed

Description

@sco1

The strcheck helper method is currently hardcoded to error out when presented with an input that is not of type char or cell:

if ~iscell(newString)
    msgID = sprintf('legtools:%s:InvalidLegendString', src);
    error(msgID, ...
          'Invalid Data Type Passed: %s\n\nData must be of type(s): %s, %s', ...
          class(newString), class({}), class('') ...
          );
end

With the addition of the string data type in MATLAB R2016b there is another valid option for representing arrays of strings that is currently not supported by legtools

Activity

  1. self-assigned this
    on Oct 4, 2016
  2. sco1 commented on Oct 4, 2016

    @sco1
    MemberAuthor

    A fix has been implemented and will be tested in the morning when I finally get around to installing R2016b on my development machine.

  3. added a commit that references this issue on Oct 5, 2016
    ca1c438
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions