df: r6 octave
This commit is contained in:
15
ds/25-1/r/6/mlclass-ex1/warmUpExercise.m
Normal file
15
ds/25-1/r/6/mlclass-ex1/warmUpExercise.m
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user