Undefined function or variable 'convertStringsToChars'.
Error in shaperead (line 201)
[varargin{:}] = convertStringsToChars(varargin{:});
I keep getting the error when trying to add the African map shapefile, how can rectrify this?

6 commentaires

Hari Krishna Ravuri
Hari Krishna Ravuri le 2 Août 2019
Can you share the shapefile
Boipelo Thande
Boipelo Thande le 7 Août 2019
Please find the attached zip file
KSSV
KSSV le 7 Août 2019
Whay you have is a xml file.......how did you try to read it?
Adam Danz
Adam Danz le 7 Août 2019
What matlab version are you using? The convertStringsToChars() function became available in r2017b.
Boipelo Thande
Boipelo Thande le 7 Août 2019
I started using R2018b then went lower to R2015a. Thanks, will use r2017b.
Adam Danz
Adam Danz le 7 Août 2019
Modifié(e) : Adam Danz le 8 Août 2019
That should fix the problem.
I'll move my comment to the answers section so your question appears as answered.

Connectez-vous pour commenter.

Réponses (1)

Adam Danz
Adam Danz le 7 Août 2019

0 votes

(continued from the comments section under the question).
The convertStringsToChars() function became available in r2017b. Check that your matlab release is prior to r2017b.
ver()

Produits

Version

R2015a

Modifié(e) :

le 8 Août 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by