tailieunhanh - Digital Signal Processing : Introduction to MATLAB

Command window: main window characterized by ‘’ command prompt. Edit window: where programs are written and saved as ‘Mfiles’. Graphics window: shows figures, alternately known as Figure are assigned numerical values by typing the expression directly a = 1+2 press enter a = 3 a = 1+2; suppresses the output | Digital Signal Processing : Introduction to MATLAB Ms. T. Samanta Lecturer Department of Information Technology BEIT, 6th Semester Books: “Getting Started with MATLAB” - Rudra Pratap “Digital Signal Processing ” - Sanjit K. Mitra. “Digital Signal Processing-A Practitioner’s Approach” - Kaluri V. Rangarao - Ranjan K. Mallik BEIT, 6th Semester Introduction MATLAB -> MATrix LABoratory Built-in Functions -Computations -Graphics -External Interface -Optional Toolbox for Signal Processing, System analysis, Image Processing BEIT, 6th Semester How many windows? BEIT, 6th Semester MATLAB Windows Command window: main window characterized by ‘>>’ command prompt. Edit window: where programs are written and saved as ‘M-files’. Graphics window: shows figures, alternately known as Figure window. BEIT, 6th Semester Command Window Figure Window Edit Window BEIT, 6th Semester Matlab Basics BEIT, 6th Semester MATLAB Basics: Variables Variables: -Variables are assigned numerical values by typing the . | Digital Signal Processing : Introduction to MATLAB Ms. T. Samanta Lecturer Department of Information Technology BEIT, 6th Semester Books: “Getting Started with MATLAB” - Rudra Pratap “Digital Signal Processing ” - Sanjit K. Mitra. “Digital Signal Processing-A Practitioner’s Approach” - Kaluri V. Rangarao - Ranjan K. Mallik BEIT, 6th Semester Introduction MATLAB -> MATrix LABoratory Built-in Functions -Computations -Graphics -External Interface -Optional Toolbox for Signal Processing, System analysis, Image Processing BEIT, 6th Semester How many windows? BEIT, 6th Semester MATLAB Windows Command window: main window characterized by ‘>>’ command prompt. Edit window: where programs are written and saved as ‘M-files’. Graphics window: shows figures, alternately known as Figure window. BEIT, 6th Semester Command Window Figure Window Edit Window BEIT, 6th Semester Matlab Basics BEIT, 6th Semester MATLAB Basics: Variables Variables: -Variables are assigned numerical values by typing the expression directly >> a = 1+2 press enter >> a = 3 >> a = 1+2; suppresses the output BEIT, 6th Semester Variables several predefined variables i sqrt(-1) j sqrt(-1) pi . >> y= 2*(1+4*j) >> y= + BEIT, 6th Semester Variables Global Variables Local Variables BEIT, 6th Semester MATLAB Basics: Arithmetic operators: + addition, - subtraction, * multiplication, /division, ^ power operator, ' transpose BEIT, 6th Semester Matrices Matrices : Basic building block Elements are entered row-wise >> v = [1 3 5 7] creates a 1x4 vector >> M = [1 2 4; 3 6 8] creates a 2x3 matrix >> M(i,j) => accesses the element of ith row and jth column BEIT, 6th Semester Basics Matrices Special Matrices null matrix: M = []; nxm matrix of zeros: M = zeros(n,m); nxm matrix of ones: M = ones(n,m); nxn identity matrix: M = eye(n); --Try these Matrices [eye(2);zeros(2)],[eye(2);zeros(3)], [eye(2),ones(2,3)] BEIT, 6th Semester Matrix Operations Matrix operations: A+B is valid if A and B are of same size

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.