Matlab Basic Assignment
. MATLAB for Biomedical Engineers
Assignment 1
Due date = 02/02/2017
In this assignment you are asked to get familiar with matlab command window and create a user profile, student info and some basic matlab calculations. At the end of the assignment you are required to email or upload the data containing mat file google drive I shared.
First of all clear the workspace and command history by using clear and clc commands
Create a variable named ‘Name’ by assigning your name
Create a variable named ‘Surname’ by setting your surname properly
Create a variable of scalar named ‘Cnumber’ by assigning your number
Create an array named ‘myCnumArr’ to set your C number digits to each element properly
Create a range of ‘CnumLast4digits’ for the last 4 digits of your c number.
Create another array named ‘myCnumlast4digits’ to contain last 4 elemets for your Cnumber’s last 4 digits
Create a scalar named myGrade and set it to sum of your Cnumber last4 digits using sum() function and myCnumlast4digits array you created in the previous step as the argument.
Create a scalar named maxCnum, minCnum,meanCnum and set them to contain max,min,mean of your Cnumber digits, by using, max(), min(),mean() functions.
Save the workspace as .mat named as your Cnumber.
Copy the command history commands you used in a text file or word file named your Cnumber