Violin Plot with mean, median and interquartile range
Version 1.0.0 (2,46 KB) von
Alessandro Compagnoni
get violin plots from your data
% This function generates a violin plot for each dataset provided as input.
% Violin plots are estimated from histcounts MATLAB function.
% The thick line in the box represents the mean, while the thin line represents the median.
%
% Inputs:
% - Data vectors (each data vector should be followed by its name)
% - numbins: number of bins for the histogram
% - data label: a string for the ylabel of the plot
%
% Example usage:
% plotViolin(V1, 'nameV1', V2, 'nameV2', ..., 150, 'delay')
% Where V1, V2, ... are vectors of data, 'nameV1', 'nameV2', ... are their names,
% 150 is the number of bins, and 'delay' is the data label for the plot
Zitieren als
Alessandro Compagnoni (2024). Violin Plot with mean, median and interquartile range (https://www.mathworks.com/matlabcentral/fileexchange/175220-violin-plot-with-mean-median-and-interquartile-range), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2024b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |