Unexpected error when plotting a bar chart
Mostra commenti meno recenti
figure('Name','frequency of reduced category response by groups');
h = bar(mean_resp_bygroup([3,4,2,1],:)); %mean_resp_bygroup is a 4-by-2 double matrix
h.YLabel = 'Reduced Category Response';
h.DisplayName = {'OR','XOR'}; %legend labels
h.XTickLabels = {'W','X','Y','Z'};
legend();
title('Frequency of Reduced category response');
I get this error message: Expected one output from a curly brace or dot indexing expression, but there were 2 results.
I suspect that has something to do with how the function bar works in the background. Anyone has any idea how to solve this issue?
4 Commenti
jonas
il 6 Lug 2020
What line is the error referring to?
Mingjia Hu
il 6 Lug 2020
jonas
il 6 Lug 2020
then I suspect that is where the error is ;)
Mingjia Hu
il 6 Lug 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Bar Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!