ENGR-25_TYU_chp02.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.

Slides:



Advertisements
Similar presentations
Chp1 MATLAB OverView: Part-1
Advertisements

ENGR-22_Lec-17_Dimensioning-2.ppt 1 Bruce Mayer, PE Engineering 22 – Engineering Design Graphics Bruce Mayer, PE Licensed Electrical.
MTH16_MTE1_Review.pptx 1 Bruce Mayer, PE Mathematics 16: Applied Calculus-II Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-45_Prob_3-5_3-12_2-16_Lab.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical.
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lec-28_Application_Sesimic-Analysis.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer,
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
E ENGR-25_Chp2_AirCraft_Separation_.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Chp3 Tutorial: Prob 3.14 Solution
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-43_Lec-06c_2ndOrder-Filter_MATLAB-BodePlots.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer,
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Given Irregular Quadrilateral  By Law of.
MTH16_Lec-19_sec_10-3_Taylor_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MIPS Coding. Exercise 1 4/17/2015week04-3.ppt2 Suppose we have three arrays, A, B, C, all of size 10. Now we want to set C[i] = min(A[i], B[i]) for all.
1.3 ARRAYS, FILES, AND PLOTS + FOURIER SERIES BY MR. Q.
ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH16_Lec-01_sec_6-1_Integration_by_Parts.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Lec-25_SimuLink-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Licensed Electrical & Mechanical Engineer
ENGR-25_Lec-27_MuPAD_Miscellaneous-n-TYUs.pptx 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer,
ENGR-25_Chp6_Tutorial_PolyFit_J_S_rsq.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Exam #3 Review: Comprehensive Exam Class 14.2 Palm Matlab Book Ch. 1-5.
Dr. Jie Zou PHY Welcome to PHY 3320 Computational Methods in Physics and Engineering.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR 1320 Final Review - Programming Major Topics: – Functions and Scripts – Vector and Matrix Operations in Matlab Dot product Cross product – Plotting.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
ENGR-25_Programming-3.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Introduction to MATLAB ENGR 1181 MATLAB 1. Opening MATLAB  Students, please open MATLAB now.  CLICK on the shortcut icon → Alternatively, select… start/All.
ENGR-36_Lab-24_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_MATLAB_OverView-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
FAQ_Which_Courses_Should_I_Take_Chabot_Engineering_0505.ppt 1 Bruce Mayer, PEIntroduction to Engineering Bruce Mayer, PE Licensed.
ENGR-45_Photo_Scaling_Exercise.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-25_Prob_2-24_Solution.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-10_HW_Engr_Fields_Disciplines_Instructions.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
E ENGR36_Tutorial_Areal_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical &
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-06_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH15_Lec-17a_sec_3-5_Round_End_Fence_Enclosure.pptx 1 Bruce Mayer, PE MTH15: Applied Calculus I Bruce Mayer, PE Licensed Electrical.
ENGR-45_Lec-30A_Final_Exam-Review.pptl.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical & Mechanical.
© ENGR-43_Prob_14-32_OpAmp_OutPut_Current.pptx 1 Bruce Mayer, PE Engineering-43 Electrical Circuits & Devices Bruce Mayer, PE.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-10_Why-n-Where_Self-Intro_Order.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Test Your Understanding Chp03
Licensed Electrical & Mechanical Engineer
Catenary Tutorial Part-2
Chp3 Tutorial: Prob 3.15 Solution
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Lab-23 Chp10 Beam VM Diagrams By Calculus
Chp3 Nodal Analysis & MATLAB
Lab-05 Chp4 Angle Problems
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Test Your Understanding Chp01
Chp4, Lab-03 Example Problems 4.5.[60,54]
Chp12 Prob Solution Common-Source pFET Amplifier
Licensed Electrical & Mechanical Engineer
Presentation transcript:

ENGR-25_TYU_chp02.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engr/Math/Physics 25 Test Your Understanding Chp02

ENGR-25_TYU_chp02.ppt 2 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.1-2  The B Matrix B = >> C = max(B) C = >> D = max(C) D = 25 >> C = sort(B) C = Ans (a) Ans (b)

ENGR-25_TYU_chp02.ppt 3 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.4-1 & T2.4-2 >> u = [6, -8, 3]; >> w = [5; 3; -4]; >> u u = >> w w = >> u*w ans = -6 >> P = [7,4; -3,2; 5,9]; >> Q = [1,8; 7,6]; >> % [P][Q] = [3x2][2x2] >> P*Q ans =

ENGR-25_TYU_chp02.ppt 4 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.5-4 >> f = [6,4,0,-5];g = [12,-7,3,9]; >> f2 = polyval(f,2) f2 = 59 >> g = polyval(g,2) g = 83 >> f2/g2 ans = >> quot2 = polyval(f,2)/polyval (g,2) quot2 = >> [q,r] = deconv(f,g); >> quot2 = polyval(q,2)+polyval (r,2)/polyval(g,2) quot2 =

ENGR-25_TYU_chp02.ppt 5 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.5-5 >> x = [-7:.02:1]; >> f = [1,13,52,6]; >> FofX = polyval(f,x); >> plot(x, FofX), xlabel('x'), ylabel('f(x)'), grid

ENGR-25_TYU_chp02.ppt 6 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.6-1  The Script File  The Output % TYU T2.6-1 % Bruce Mayer, PE % ENGR25 20Jun05 A{1} = [1:4]; A{2} = [0,9,2]; A{3} = [2:5]; A{4} = [6:8]; [x,y] = deal(A{1:2}); B = [x,y] C = [A{2};A{4}] [u,v] = deal(A{2:3}); D = min([u,v]) B = C = D = 0

ENGR-25_TYU_chp02.ppt 7 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.7-1 m-File

ENGR-25_TYU_chp02.ppt 8 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T2.7-1  Exercise Structure >> student(3).tests ans = >> student(3).tests(2) = 53; >> student(3).tests ans = >> student(1).IDN ans = >> student student = 1x3 struct array with fields: name IDN tests >> new_student = rmfield(student,'IDN'); >> new_student new_student = 1x3 struct array with fields: name tests >> new_student(1).IDN ??? Reference to non-existent field 'IDN'. >> student(1:3).name ans = Nolan Ryan ans = Walter Johnson ans = Bob Gibson

ENGR-25_TYU_chp02.ppt 9 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T1.3-3 Command Script  From the Command Window >> t = [0:0.1:5]; >> s = 2*sin(3*t +2) + sqrt(5*t +1); >> plot(t,s), xlabel('t (seconds)'), ylabel('s (fps)'), title('Speed vs Time - ENGR25 Jun05')

ENGR-25_TYU_chp02.ppt 10 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T1.3-3: File → Save As...jpg

ENGR-25_TYU_chp02.ppt 11 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T1.3-4 Command Script  From the Command Window >> x = [0:0.02:1.5]; >> y = 4*sqrt(6*x + 1); >> z = 5*exp(0.3*x) - 2*x; >> plot(x,y,x,z), xlabel('distance (m)'), ylabel('force (N)'), gtext('y'), gtext('z')