Download presentation
Presentation is loading. Please wait.
1
CIS 101: Computer Programming and Problem Solving Usman Roshan Department of Computer Science NJIT
2
Syllabus Office hours: Course website: –http://www.cs.njit.edu/usman/courses/cis101_spring06http://www.cs.njit.edu/usman/courses/cis101_spring06 –Course powerpoint presentations and announcements will be posted on website Course description: Learn MATLAB and use it to solve engineering and scientific problems Exams: Short in-class quizzes and one final Homeworks: Problems assigned every week Cheating policy: No cheating will be tolerated Makeup exams: Only health related documented excuses will be accepted
3
About this course Mainly focused around MATLAB We will take engineering and scientific problems and solve them using MATLAB Our focus is not to derive formulas but to learn how to program and solve problems using programming We may learn some C++ if time permits but MATLAB itself offers a lot to explore
4
Starting Matlab MATLAB startup window Description of windows
5
Help Window Help Window: Very Useful!
6
Working in Command Window
7
Using MATLAB as a calculator
8
Using MATLAB as a calculator II
9
Displaying formats
10
Basic Math Functions Elementary functions Trigonometric functions
11
Basic Math Functions II Rounding functions Example: using sqrt function
12
Defining variables in MATLAB Variable_name = A numerical value, or a computable expression Example 1 Example 2
13
Defining variables in MATLAB II Example 3 Example 2 Example 4 Example 1
14
Defining variables in MATLAB II Example 1 Example 2
15
Problem Solving I Verify that the indentity shown is correct by calculating each side of the equation using
16
Problem Solving II R1=16mm, R2=6.5mm, R3=12mm, R4=9.5mm Find distance between C2 and C4
17
Problem Solving II
18
Problem Solving III To=Initial temperature of object at time t=0 Ts=temperature of chamber object is placed into T=temperature of object at time t k=constant Temperature of object rises according to function shown below If a soda can (from inside a hot car) at 120F is placed into a refrigerator with 38F hat is the temperature after 3 hours (k=0.45)?
19
Problem Solving III
20
Now we go to the lab!!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.