% tmytranspose Driver script for mytranspose [PHYS210-DEMO]

fprintf('Defining m1 to be a 2 x 4 matrix.\n');
m1 = reshape(1:8, 2, 4)

fprintf('Computing m1'' using mytranspose and assigning to m1trans.\n');
m1trans = mytranspose(m1)

fprintf('Computing m1'' using '' operator and assigning to m1trans_matlab.\n');
m1trans_matlab = m1'

fprintf('Comparing the results: Expect the 2 x 4 one''s matrix.\n');
m1trans == m1trans_matlab
