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
Tài liệu HOT
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
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Essential MATLAB for Engineers and Scientists-Lecture 3: Creating Mfiles
TAILIEUCHUNG - Essential MATLAB for Engineers and Scientists-Lecture 3: Creating Mfiles
Basic elements of 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) example of technical computinAn example of technical computing Let us consider using the hyperbolic tangent to model a downhill section of a snowboard or snow ski facility. Let us first examine the hyperbolic tangent function by executing the command: ezplot( ‘tanh(x)’ ). | 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 .
Phi Cường
57
17
ppt
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
MATLAB Primer - Seventh Edition
230
50
0
Essential MATLAB for Engineers and Scientists-Lecture 3: Creating Mfiles
17
45
0
MATLAB Primer
230
60
0
Essential MATLAB for Engineers and Scientists, Fourth Edition
415
45
0
MATLAB/Simulink for Digital Communication
115
66
0
Learning MATLAB
296
91
1
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461844
55
Giới thiệu :Lập trình mã nguồn mở
14
22508
57
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10855
529
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10024
445
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9480
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8241
1124
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8199
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7859
2219
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6639
253
Vật lý hạt cơ bản (1)
29
5752
85
TỪ KHÓA LIÊN QUAN
Kỹ thuật lập trình
MATLAB Desktop
Matrices
Matrix Operations
Two Dimensional Graphics
MATLAB Functions
C from MATLAB
Accessing MATLAB
Colon Notation
Control Flow Statements
information technology
curriculum
The MATLAB Desktop
MATLAB Fundamentals
Program Design
Algorithm Development
Logical Vectors
MATLAB
Simulink
MathWorks Products
Symbolic Math Toolbox
Desktop Tools
TÀI LIỆU MỚI ĐĂNG
Mass Transfer in Multiphase Systems and its Applications Part 19
40
254
1
19-04-2024
extremetech Hacking BlackBerry phần 9
31
239
0
19-04-2024
Trading Strategies Profit Making Techniques For Stock_3
23
181
0
19-04-2024
Bơm máy nén quạt trong công nghệ part 1
20
248
2
19-04-2024
MySQL Database Usage & Administration PHẦN 7
37
154
0
19-04-2024
Lịch sử Đội TNTP Hồ Chí Minh - CHƯƠNG III VÂNG LỜI BÁC DẠY, LÀM NGHÌN VIỆC TỐT, CHỐNG MỸ, CỨU NƯỚC, THIẾU NIÊN SĂN SÀNG
45
136
0
19-04-2024
QUẢN LÝ CHẤT LƯỢNG KHÔNG KHÍ
75
136
0
19-04-2024
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM CAITA part 9
18
126
0
19-04-2024
Data Structures and Algorithms - Chapter 8: Heaps
41
115
0
19-04-2024
Giáo trình kỹ thuật sữa chữa ô tô, máy nổ part 8
47
136
1
19-04-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7859
2219
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
5589
1325
Ebook Chào con ba mẹ đã sẵn sàng
112
3749
1228
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8241
1124
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5246
1124
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3471
641
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10855
529
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3668
524
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4015
513
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4093
478
Đã 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.