I have plotting question

I have tried the rest but question 11 become difficult for me. Can you help me please!

2 Commenti

hint: categorical() and bar3()
Tekilu
Tekilu il 25 Giu 2022
Thank you family!

Accedi per commentare.

 Risposta accettata

Voss
Voss il 25 Giu 2022
Modificato: Voss il 25 Giu 2022
Here's something, with random data for 5 stations.
% replace this with your data, an 11x12 matrix:
data = 6*rand(5,12)+2.5
data = 5×12
3.0578 8.3163 8.4855 7.7920 3.1272 7.9973 7.1697 4.7294 5.3315 4.2942 3.1002 6.5341 5.1729 7.5910 5.0186 6.9756 2.6272 5.4279 8.1011 6.4527 4.8268 8.3244 2.5925 4.9417 2.7454 2.7571 3.1044 3.1509 3.4733 5.2987 2.8486 7.0261 3.7225 8.1902 8.2890 4.6708 7.4746 7.4009 6.8467 6.1027 7.1125 3.2912 7.0206 7.9211 8.1908 6.8093 5.9398 8.0103 4.5354 8.4101 5.9261 3.9352 2.7845 4.3262 8.4125 8.3051 4.1644 3.7899 2.9574 6.3359
% replace this with your stations:
stations = {'Berlin' 'Hamburg' 'Frankfurt' 'Munich' 'Stuttgart'};
% keep this the same (Ethiopia has the same months as Germany does):
months = 'JFMAMJJASOND';
% plot, labels, title, etc.
plot(data.')
xlim([1 12])
xticks(1:12)
xticklabels(num2cell(months))
legend(stations)
title('Mean Daily Solar Radiation');
ylabel('kWh/m^2/day')

2 Commenti

Tekilu
Tekilu il 25 Giu 2022
Thank you family!
Voss
Voss il 25 Giu 2022
You're welcome!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Richiesto:

il 25 Giu 2022

Commentato:

il 25 Giu 2022

Community Treasure Hunt

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

Start Hunting!

Translated by