Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hackassin
GitHub Repository: hackassin/Coursera-Machine-Learning
Path: blob/master/Week 2/Programming Assignment-1/warmUpExercise.m
626 views
1
function A = warmUpExercise()
2
%WARMUPEXERCISE Example function in octave
3
% A = WARMUPEXERCISE() is an example function that returns the 5x5 identity matrix
4
5
A = eye(5);
6
% ============= YOUR CODE HERE ==============
7
% Instructions: Return the 5x5 identity matrix
8
% In octave, we return values by defining which variables
9
% represent the return values (at the top of the file)
10
% and then set them accordingly.
11
12
13
14
15
16
17
18
% ===========================================
19
20
21
end
22
23