필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Numbers of axe x incorrect using boxplot and hold

조회 수: 1 (최근 30일)
carlos osorio
carlos osorio 2015년 1월 25일
마감: MATLAB Answer Bot 2021년 8월 20일
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?

답변 (1개)

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

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by