Info
此问题已关闭。 请重新打开它进行编辑或回答。
Numbers of axe x incorrect using boxplot and hold
2 次查看(过去 30 天)
显示 更早的评论
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146921/image.png)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146922/image.png)
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?
0 个评论
回答(1 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!