How to plot a boxplot with same label?

I am trying to have a boxplot with similar label, but matlab boxplot does not take it.
boxplot(randn(4),{'a','b','a','b'})
This however, is working
boxplot(randn(4),{'a','b','c','b'})

Answers (0)

Tags

Asked:

on 7 Mar 2020

Community Treasure Hunt

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

Start Hunting!