I have a matlab script and one of the variables is:
a = 'false' % my string
my goal is to convert such variable into a boolean variable:
a = false % my goal
is there a matlab function that allows me to convert the string into a boolean value?
a = string2boolean('false') % I would like to have something like this
If there are no functions that allow to do that what could be another possible solution?

logical. Is it always 'true' or 'false'? Why not juststrcmpi(a,'true')?~strcmp(a, 'false').