Effacer les filtres
Effacer les filtres

Can not use categorical string values to generate strings for title, Error: 'getVars' for input arguments of type 'categorical'

2 vues (au cours des 30 derniers jours)
Hi All,
I have a list of categorical strings generated with table called "Sites". Now I would like to use these strings in a for loop to generate a titles and save figures.
tit=Sites(i)
title ([tit], 'fontsize', 14);
savefig(['Figures/Fig_',tit, '.fig'])
However I got the following error:
Undefined function 'getVars' for input arguments of type 'categorical'.
I even tried table2cell, still did not work. Does anyone know how to solve the problem?
Thank you
Bir

Réponse acceptée

dpb
dpb le 14 Juil 2016
Use char to convert to character string...

Plus de réponses (0)

Catégories

En savoir plus sur Categorical Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by