I need the matlab code for the graph I The following table s

I need the matlab code for the 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

Solution:

to plot above chart in Matlab we need to use function \"bar\"

Program :

x= [\'Mon\' \'Tue\' \'Wed\' \'Thu\' \'Fri\' \'Sat\' \'Sun\'] ;

y = [ 2 3

2.3 2.7

3.2 1.2

4.2 2.6

1.2 2.9

5 1

3 2.3];

bar (x, y) ;

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site