Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Numbers of axe x incorrect using boxplot and hold

1 Ansicht (letzte 30 Tage)
carlos osorio
carlos osorio am 25 Jan. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi guys,
I'm working with metaheuristic algorithms programmed in language C and Cuda C, so i have to show the results in the same figure using boxplot but i have the netx problem:
The numbers of axe X are incorrect, my code is:
an = load ('ansi.txt');
xAn=an(:,1);
yAn=an(:,2);
cu = load ('cuda.txt');
xCu=cu(:,1);
yCu=cu(:,2)
boxplot(yCu,xCu, 'color','b');
hold all
boxplot(yAn,xAn, 'color','r');
I would like a graph like generated with plot() where axe X is not unorganized
an = load ('ansi.txt');
xAn=an(:,1);
yAn=an(:,2);
cu = load ('cuda.txt');
xCu=cu(:,1);
yCu=cu(:,2)
plot(xCu,yCu, 'b.');
hold all
plot(xAn,yAn, 'r.');
Can you help me please?

Antworten (1)

Simon MADEC
Simon MADEC am 13 Jan. 2017
Hello, have a look to this function ==> http://alex.bikfalvi.com/research/advanced_matlab_boxplot/
and use hold on ..

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by