Dear all, I need to generate some box plots. However, there are several long texts and I need to break in vertical lines. I am using the command strvcat and am not having success. The following is an example of my script:
X = rand(20,6);
boxplot(X);
str={strvcat('cos(x)','Line 2'), strvcat('cos(x)','Line 2'), strvcat('cos(x)','Line 2'),...
strvcat('cos(x)','Line 2'), strvcat('cos(x)','Line 2'),strvcat('cos(x)','Line 2')};
set(gca, 'XTick',1:6,'XTickLabel',str, 'FontSize',8,'FontWeight','bold')
Can I help me? Thanks a lot!
1 Comment
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/344475-strvcat-doen-not-work#comment_461237
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/344475-strvcat-doen-not-work#comment_461237
Sign in to comment.