Skip to content

URL as string causes error in R2017a #2

@OdysseusMiX

Description

@OdysseusMiX

When running the example in R2017a, the following error is thrown:

Error using plot_openstreetmap (line 90)
The file name or URL argument must be a character vector.

Line 90 is as follows:
[indices, cmap, imAlpha] = memoizedImread(url);

The error is due to url being a string and not a char vector. This issue is fixed by changing line 90 to:
[indices, cmap, imAlpha] = memoizedImread(char(url));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions