How can I create a bar plot like the following figure in Matlab? Any help? Thank you.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I create a bar plot like the following figure in Matlab?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Nov. 2022
@the cyclist @Walter Roberson has the Mind Reading Toolbox. We may just have to wait for him to answer.
@sam saying "Sorry, this doesn't help." doesn't help. Make it easy for people to help you, not hard.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
r = 0.5 + 0.5 * rand(6, 4)
bar(r)
ylabel('Accuracy');
xlabel('Classifier')
xticklabels({'Support Vector Machine', 'Logistic Regression', 'Naive Bayes', 'Decision Tree', 'K Nearest Neighbor', 'Random Forest'})
5 Kommentare
Image Analyst
am 27 Nov. 2022
Then just post your Excel workbook. Basically if we're to do it in MATLAB, we're going to need data, right? I just solved it with random data but I'm sure you'd rather solve it using your actual data, right? If right, then post the data in whatever form you have it.
Weitere Antworten (1)
Voss
am 27 Nov. 2022
3 Kommentare
the cyclist
am 27 Nov. 2022
@sam, if you want help on this forum, you need to make more effort yourself.
The simple reality is that one can make a chart that is nearly identical to the image you posted, using the bar function that @Voss recommended.
When you say, "this doesn't help", what do you expect from us? To read your mind, and understand why it doesn't help? We can't do that.
Please explain, in more than one sentence, what you have tried yourself (e.g. post your own code), where you are stuck, what you don't understand about the bar function, etc.
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!