% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 
% BIOE 198 Lab 8
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 

clear all; clc
a = uint8(3);
b = uint8(3.5);
c = uint8(255);
d = uint8(256);


%%
clear all; clc
a = [1 2];
b = [1 2];
c = [0 0];
d = [0 0];

for i = 1:2
    if a(i)>=2 && b(i)<=2
       c(i) = a(i)*b(i);
    end
    
    if a(i)>=2 || b(i)<=2
       d(i) = a(i)*b(i);
    end
end

%%
clear all; clc
x = [1 2 3 4 5 6 7 8 9 10];
y = [3 1 5 6 8 2 9 4 7 0 ];
 
a = x>3;
b = x<8;
c = x(x>3 | x<8);
d = x(x>3 & x<8);
e = y(x<=3);
f = x(y~=3);

%%
clear all; clc
a = num2str(int8(128));
b = int8(str2num('-129'));

c = int2str(3.499999999);
d = int2str(3.5);

e = double('1') + double('1');
f = double(1)  + double(1);

A = 123.456;
g = num2str(A);
h = num2str(A,'%.2e');
k = num2str(A,'%.2f');

x = 1; y = 1; z = 0; 
o = x & y & z;
p = (x | y) & z;
q = x | y & z;
r = x & y < z;


