I am unable to get a transparent background in this MWE file; no errors. The procedure works fine for other types of Matlab plotting function
fileName = 'C-13.tex'; % Input file name
text = ' this this this a is a test';
text = lower(text);
words = split(text);
[uniqueWords, ~, idx] = unique(words);
wordCounts = accumarray(idx, 1);
wordTable = table(uniqueWords, wordCounts, 'VariableNames', {'Word', 'Frequency'});
wordTable = sortrows(wordTable, 'Frequency', 'descend');
topWordCount = 75; % Keep top 75 words
wordTable = wordTable(1:min(topWordCount, height(wordTable)), :);
hf = figure;
wc = wordcloud(wordTable.Word, wordTable.Frequency);
orangeColor = [1.0, 0.5, 0.0]; % Bright orange
colorMap = repmat(orangeColor, numel(wc.WordData), 1);
wc.Color = colorMap;
%set(gca,'color', 'none');
set(gcf, 'color', 'None');
exportgraphics(hf,'out.pdf','BackgroundColor','none','ContentType','vector')