Convert categorical to string

832 views (last 30 days)
NAVNEET NAYAN on 2 Oct 2021
Commented: NAVNEET NAYAN on 2 Oct 2021
I have two categorical column vectors of size 872-by-1. I want to calculate the Levenshtein distance between these two. When I am using the command 'editDistance' for this I am getting an error as
"Argument 1 must be a string array, a character vector, or a cell array of character vectors."
After searching the solution for this problem, I thought to convert it to string, but I am not getting a way for this. How can I convert categorical column vector to string? or how can I resolve the error?
In case of any query feel free to comment.
NAVNEET NAYAN on 2 Oct 2021
Thank You So Much. It worked

Sign in to comment.

Answers (0)


Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!