I need matlab cods for this graph I The following table show

I need matlab cods for this graph.

I. The following table shows the number of hours spent on two activities during each day of a week activity A Day Activity A Activity B 4 activ B 2.0 3.0 Mon Tue 2.3 2.7 Wed 3.2 1.2 Thu 4.2 2.6 Fri 1.2 Sat 5.0 1.0 Sun 3.0 Mon Tue Wed Thu Fri Sat Sun Write code to create the above plot of the two activities.

Solution

data=[2.0 3.0;2.3 2.7;3.2 1.2;4.2 2.6;1.2 2.9;5.0 1.0;3.0 2.3];

figure;

bar(data,\'grouped\');

set(gca,\'XTickLabel\',{\'Mon\',\'Tue\',\'Wed\',\'Thu\',\'Fri\',\'Sat\',\'Sun\'});

I need matlab cods for this graph. I. The following table shows the number of hours spent on two activities during each day of a week activity A Day Activity A

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site