How to properly plot a graph for these values in a single plot.
2 ビュー (過去 30 日間)
古いコメントを表示
i have X as lables, Y Y1 Y2 are performance measures. i want all of these in a single graph. I tried this code
hfig = figure ;
p=plot(X,Y,X,Y1,X,Y2);
title('Performance Curve')
xlabel('Labels')
but i got a graph like , which is not clear. How to modify this. Also i need to display at a side in the graph what is Y Y1 Y2. bar graph is also fine if its good.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194712/image.png)
0 件のコメント
回答 (1 件)
Dimitris Kalogiros
2018 年 8 月 29 日
Your problem is data into X .
Matlab expects that X contains numeric values. But in your case, if you display values of X , you shall see that it contains strings.
You must convert these strings to numbers.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!