Skip to content

character concatenation #29

@JiananJian

Description

@JiananJian

file and line:

mpath2 = mpath + fs; npath2 = length(mpath2);

code: mpath2 = mpath + fs;

environment: Windows 11

issue: both mpath (which is cvx___.where) and fs (which is '') are of type char. As neither is a string, MATLAB interprets the + operation as addition (in ascii value) not concatenation, while the authors' intention is clearly concatenation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions