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.

  1. First of all clear the workspace and command history by using clear and clc commands

  2. Create a variable named ‘Name’ by assigning your name

  3. Create a variable named ‘Surname’ by setting your surname properly

  4. Create a variable of scalar named ‘Cnumber’ by assigning your number

  5. Create an array named ‘myCnumArr’ to set your C number digits to each element properly

  6. Create a range of ‘CnumLast4digits’ for the last 4 digits of your c number.

  7. Create another array named ‘myCnumlast4digits’ to contain last 4 elemets for your Cnumber’s last 4 digits

  8. 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.

  9. 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.

  10. Save the workspace as .mat named as your Cnumber.

  11. Copy the command history commands you used in a text file or word file named your Cnumber