Syllabus - Robotics and Mechatronics Engineering (RM-705)


VII-Semester

Robotics and Mechatronics Engineering (RM-705)

VII-Semester

MATLAB and R Programming

The purpose of this laboratory is to provide the knowledge of latest research tools/techniques such as MATLAB and R Programming which is being used in finding out the solution of most of the engineering problems. MATLAB is a multi-paradigm numerical computing environment and proprietary programming language developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages.

Course Objective

The purpose of this laboratory is to provide the knowledge of latest research tools/techniques such as MATLAB and R Programming which is being used in finding out the solution of most of the engineering problems.

Course Outcome

Evaluation will be continuous and integral part of the class as well as through external assessment (Viva/voce)

Practicals

  • R Programming

    1.Study of basic Syntaxes in R 2. Implementation of vector data objects operations 3. Implementation of matrix, array and factors and perform va in R 4. Implementation and use of data frames in R 5. Create Sample (Dummy) Data in R and perform data manipulation with R 6. Study and implementation of various control structures in R 7. Data Manipulation with dplyr package 8. Data Manipulation with data.table package 9. Study and implementation of Data Visualization with gg plot2 10. Study and implementation data transpose operations in R

  • MATLAB Programs

    Following are the suggested list of experiments related to MATLAB (Pl expand) 1. Introduction to MATLAB 2. Working with matrices 3. Rational and logical operation of MATLAB 4. Creating a plot using Plot function 5. Complex and statistical functions (e,g.: Produce ten elements vector of random complex numbers and find the summation of this vector) 6. Numbers and strings (1.Write a program in M-File to read 3 x 3 Matrix, then display the diagonal of matrix as shown below: The Diagonal of This Matrix = [ ] 2. Write a program to read a string, then replace each character in the string with its following character in ASCII code*.) 7.Write a function that will receive as an input argument a temperature in degrees Fahrenheit, and will return the temperature in both degrees Celsius and Kelvin. The conversion factors areC = (F –32) * 5/9 and K = C + 273.15. Write a script to use the developed function 8.Write a script that will:a. Call a function to prompt the user for an angle in degrees.b. Call a function to calculate and return the angle in radians.c. Call a function to print the result.Write all of the functions as well. Note that the solution to this problem involves four M-files:one which acts as a main program (the script shown below), and three for the functions. 9.Write a program to print a length conversion chart. It will print lengths in feet, from 1 to an integer specified by the user, in one column and the corresponding length in meters (1 foot = 0.3048 m)in a second column. The main script will call one function that prompts the user for the maximum length in feet; this function must error-check to make sure that the user enters a valid positive integer. The script then calls a function to write the lengths to the screen.

Reference Books