Use of MATLAB in food industry; computing with MATLAB, script files and editor/debugger, MATLAB help system, problem solving methodologies, numeric, cell, arrays, matrix operations, user defined functions, programming using MATLAB; debugging MATLAB programs, applications to simulations
COM 103 ICT Applications in Food Industry (1+2)
Lecture Schedule 5 – Part - II
Dr. S. Sridevy, Ph.D.
Assistant Professor (Computer Science)
Dept. of Physical Sciences & IT
AEC&RI, TNAU, Coimbatore – 3.
3 June 2020
Naming Rules for Variables
S. Sridevy
3 June 2020
Creating Strings (Text Variables)
>> month = ‘August’
S. Sridevy
3 June 2020
Displaying Variables
>> disp(‘The value of x is:’); disp(x)
S. Sridevy
3 June 2020
Script Files
S. Sridevy
3 June 2020
Script Files
S. Sridevy
3 June 2020
Script Files
Click on New Script
Creates Blank Script File
Script File Procedure
S. Sridevy
3 June 2020
Exercise 1
S. Sridevy
3 June 2020
Exercise 1: Script File
Save the file as CircleScript in newly created folder.
Note: Any line that starts with a % is a comment and
turns green – it doesn’t execute.
Script Files
S. Sridevy
3 June 2020
Script Files
S. Sridevy
3 June 2020
Default MATLAB Desktop
S. Sridevy
3 June 2020
Command Window
S. Sridevy
3 June 2020
Current Directory Window
S. Sridevy
3 June 2020
Workspace Window
S. Sridevy
3 June 2020
Command History Window
S. Sridevy
3 June 2020
MATLAB Help System
1. Function Browser
2. Help Browser
3. Help Functions
4. Other Resources
S. Sridevy
3 June 2020
Problem Solving Methodologies
1.Understand the purpose of the problem.
2. Collect the known information. Realize that some of it might later be found unnecessary.
3. Determine what information you must find.
4. Simplify the problem only enough to obtain the required information. State any assumptions you make.
S. Sridevy
3 June 2020
Problem Solving Methodologies (Contd.)
5. Draw a sketch and label any necessary variables.
6. Determine which fundamental principles are applicable.
7. Think generally about your proposed solution approach and consider other approaches before proceeding with the details.
S. Sridevy
3 June 2020
Problem Solving Methodologies (Contd.)
8. Label each step in the solution process.
9. If you solve the problem with a program, hand check the results using a simple version of the problem. Checking the dimensions and units and printing the results of intermediate steps in the calculation sequence can uncover mistakes.
S. Sridevy
3 June 2020
Problem Solving Methodologies (Contd.)
10. Perform a “reality check” on your answer. Does it make sense? Estimate the range of the expected result and compare it with your answer. Do not state the answer with greater precision than is justified by any of the following:
S. Sridevy
3 June 2020
Problem Solving Methodologies (Contd.)
S. Sridevy
3 June 2020
Thank You!