% In class 7-Feb-2008 clear, clc, home fprintf('The date and time: %s \n', datestr(now))
The date and time: 19-Feb-2008 13:34:03
% 3x + 4y + z = 5 % 7x - 3y + 4z = 0 % 2x + y - 10z = -17 A = [3, 4, 1; 7, -3, 4; 2, 1, -10]; b = [5; 0; -17]; x = A\b eigen_values = eig(A)
x =
-0.4789
1.1787
1.7221
eigen_values =
6.4309
-6.0182
-10.4127
fileID = fopen('f_opporations.dat', 'r'); % [Name of variable, how many characters to read] = fscanf(fileID, 'format', [size]) [A, count] = fscanf(fileID, '%g'); fclose(fileID); A
A =
5
2
2
5
1
7