Include "a" character in a wordcloud

Illustration
Lairenlakpam - 2022-04-12T13:42:43+00:00
Question: Include "a" character in a wordcloud

I am just trying to plot a simple wordcloud of grades which has a grade string, say, grade='DBBBDBEFBFFASBCBABCCSBCAABBCBACDBFDBAFDAACAFAACABBFABCBAACF' when I plot it using,     >>wordcloud(grade) the function removes all Grade A information. How do I include the grade A in the plot?

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Bear in mind that this is with base matlab. The text analytics toolbox, which I don't have, may have some better ways of doing what you want.
 
I'm simply converting your char array into a categorical array. It doesn't look like wordcloud does any filtering on categorical arrays:
 
grade='DBBBDBEFBFFASBCBABCCSBCAABBCBACDBFDBAFDAACAFAACABBFABCBAACF'
wordcloud(categorical(cellstr(grade')))
displays

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!