You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
function A = warmUpExercise()
|
|
|
|
%WARMUPEXERCISE Example function in octave
|
|
|
|
% A = WARMUPEXERCISE() is an example function that returns the 5x5 identity matrix
|
|
|
|
|
|
|
|
A = [];
|
|
|
|
% ============= YOUR CODE HERE ==============
|
|
|
|
% 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 = eye(5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% ===========================================
|
|
|
|
|
|
|
|
|
|
|
|
end
|