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

x = [Mon,Tue,wed,Thu,Fri,Sat,Sun]; y1 = [2.0 2.3 3.2 4.2 1.2 5.0 3.0]; y2 = [3.0 2.7 1.2 2.6 2.9 1.0 2.3]; trace1 = struct(\'x\',x, \'y\',y1, \'type\',\'bar\'); trace2 = struct(\'x\',x, \'y\',y2, \'type\',\'bar\'); data = {trace1 trace2}; layout = struct(\'title\',\'Bar Graph with Custom Width\', \'bargap\',0.1); response = plotly(data, struct(\'layout\',layout)); plotly_url = response.url;
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