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

URL as string causes error in R2017a #2

Open
OdysseusMiX opened this issue May 15, 2020 · 1 comment
Open

URL as string causes error in R2017a #2

OdysseusMiX opened this issue May 15, 2020 · 1 comment

Comments

@OdysseusMiX
Copy link

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));

@alexvoronov
Copy link
Owner

Hi, Thanks for spotting this.
Doing a manual cast from string to char vector does not seem right, after all, output from sprintf and input to imread should be compatible. Could you check if changing from double quotes to single quotes on line 85 resolves the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants