TAILIEUCHUNG - Lecture note Data visualization - Chapter 27

The main contents of the chapter consist of the following: Function M-files, syntax of function M-Files, comments, multiple input and output functions, relational model concepts, relational model constraints and relational database schemas, update operations and dealing with constraint violations. | Lecture 27 Recap Function M-files Syntax of Function M-Files Comments Multiple Input and Output Functions Functions with No Input or No Output Although most functions need at least one input and return at least one output value, in some situations no inputs or outputs are required For example: consider this function, which draws a star in polar coordinates: function [] = star( ) theta = pi/2:*pi:*pi; r = ones(1,6); polar(theta,r) The square brackets on the first line indicate that the output of the function is an empty matrix (., no value is returned) The empty parentheses tell us that no input is expected If, from the command window, you type star then no values are returned, but a figure window opens showing a star drawn in polar coordinates Continued . There are numerous built-in MATLAB functions that do not require any input. For example: A = clock returns the current time: A = * Columns 1 through 4 Columns 5 through 6 .

Đã 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.