Files
lab/5/data science/r/6/mlclass-ex1/warmUpExercise.m
2026-02-17 23:13:20 +03:00

16 lines
373 B
Matlab

function A = warmUpExercise()
% Instructions: Return the 5x5 identity matrix
% In octave, we return values by defining which variables
% represent the return values (at the top of the file)
% and then set them accordingly.
A = zeros(5, 5);
for i=1:5
A(i, i) = 1;
end
% ===========================================
end