Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture 3 Creating M - files
Đang chuẩn bị liên kết để tải về tài liệu:
Lecture 3 Creating M - files
Mai Chi
81
17
ppt
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Programming tools: Input/output (assign/graph-&-display) Repetition (for) Decision (if) Arrays List of numbers in brackets A comma or space separates numbers (columns) A semicolon separates row Zeros and ones Matrices: zeros() ones() Indexing (row,column) Colon Operator: Range of Data first:last or first:increment:last Manipulating Arrays & Matrices Transpose | Lecture 3 Creating M-files Programming tools: Input/output (assign/graph-&-display) Repetition (for) Decision (if) © 2007 Daniel Valentine. All rights reserved. Published by Elsevier. Review Arrays List of numbers in brackets A comma or space separates numbers (columns) A semicolon separates row Zeros and ones Matrices: zeros() ones() Indexing (row,column) Colon Operator: Range of Data first:last or first:increment:last Manipulating Arrays & Matrices Transpose Input Examples of input to arrays: Single number array & scalar: 1 × 1 >> a = 2 Row array & row vector: 1 × n >> b = [1 3 2 5] Column array & column vector: n x 1 >> b = b’ % This an application of the transpose. Array of n rows x m columns & Matrix: n × m >> c = [1 2 3; 4 5 6; 7 6 9] % This example is 3 x 3. Basic elements of a program Input Initialize, define or assign numerical values to variables. Set of command expressions Operations applied to input variables that lead to the desired result. Output Display (graphically or numerically) result. An example of technical computing Let us consider using the hyperbolic tangent to model a down-hill section of a snowboard or snow ski facility. Let us first examine the hyperbolic tangent function by executing the command: >> ezplot( ‘tanh(x)’ ) We get the following graph: Ezplot(‘tanh(x)’) Hyperbolic tangent: tanh(X) Properties (as illustrated in the figure): As X approaches –Inf, tanh(X) approaches -1. As X approaches Inf, tanh(X) approaches +1. X = 0, tanh(X) = 0. Transition from -1 to 1 is smooth and most rapid (roughly speaking) in the range -23. Thus, for –3 Review Arrays List of numbers in brackets A comma or space separates numbers (columns) A semicolon separates row Zeros and ones Matrices: zeros() ones() Indexing (row,column) Colon Operator: Range of Data first:last or first:increment:last Manipulating Arrays & Matrices Transpose Input Examples of input to arrays: Single number array & scalar: 1 × 1 >> a = 2 Row array & row vector: 1 × n >> b = [1 3 2 5] Column array & column vector: n x 1 >> b = b’ % This an application of the transpose. Array of n rows x m columns & Matrix: n × m >> c = [1 2 3; 4 5 6; 7 6 9] % This example is 3 x 3. Basic elements of a program Input Initialize, define or assign numerical values to variables. Set of command expressions Operations applied to input variables that lead to the desired result. Output Display .
TÀI LIỆU LIÊN QUAN
Lecture Business communication design - Chapter 3: Creating effective messages
Lecture 3 Creating M - files
Lecture Business driven technology (Technology plug-in): Chapter 3 - Paige Baltzan, Amy Phillips
Lecture Business communication design (2/e): Chapter 3 - Pamela A. Angell
Lecture Managerial accounting: Creating value in a dynamic business environment (9/e): Chapter 3 - Ronald W. Hilton
Lecture Operations management: Creating value along the supply chain (Canadian edition) - Chapter 3
Lecture Special events: Creating and sustaining a new world for celebration (7th edition): Chapter 3 - Joe Goldblatt
Lecture Managerial accounting Creating value in a dynamic business environment (Tenth edition): Chapter 3 - Ronald W. Hilton, David E. Platt
Lecture Special events: Creating, sustaining, and celebrating a new world (7th edition): Chapter 3 - Joe Goldblatt
Lecture Operations management: Creating value along the supply chain (Canadian edition) - Chapter 3
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.