You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
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?
When running the example in R2017a, the following error is thrown:
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));
The text was updated successfully, but these errors were encountered: