1. Engineering
2. Computer Science
3. use matlab use the given variables workspace dont neccesary...

Question: use matlab use the given variables workspace dont neccesary...

Question details

Use Matlab.........

Use the given variables....

[] workspace... dont neccesary have to use [].....

disp('*****problem2*****');

TNY = [31,26,30,33,33,39,41,41,34,33,45,42,36,39,37,45,43,36,41,37,32,32,35,42,38,33,40,37,36,51,51];

TANC=[37,24,28,25,21,28,46,37,36,20,24,31,34,40,43,36,34,41,42,35,38,36,35,33,42,42,37,26,20,25,31];

%problem 2a

nyc_avg = [];

anc_avg = [];

disp(' ');

%problem 2b

nyc_bel_avg = [];

anc_bel_avg = [];

disp(' ');

%problem 2c

anc_abv_nyc = [];

%problem 2d

temp_eq = [];

%problem 2e

equal_temp = [];

%problem 2f

both_abv_frz = [];

%problem 2g

anc_date = [];

anc_temp = [];

disp(' ');

%problem 3

disp('*****problem3*****');

%create a matrix of switch values corresponding to the table given in the

%assignment. The first 2 rows are already filled in.

switches = [0, 0, 0; 0, 0, 1; ...

];

%Extract the individual columns of the matrix

switch1 = switches(:,1);

switch2 = [];

switch3 = [];

%Write a logical expression to determine if the bulb is on, based on the

%switch states

bulbOn = []; %some logical expression involving switch1, switch2, and switch3; should be a column vector