This is to generate a fixed function, and its graph can be observed by z = peak (50) and mesh (z), which is a three-dimensional graph. Spere is also a three-dimensional graphic function and a symbolic function of matlab, which is found in many places.
Uint8 is a data type conversion. Generally, the data type that matlab participates in the operation is double, while uint8 forces the data to be converted into an 8-bit unsigned integer.
3.4 Arithmetic is preceded by a floating-point number, which is also calculated according to double data in matlab. The operation of double data and plastic data (uint8, uint 16) will convert plastic into double for calculation, so whether you use uint8 or uint 16, it will actually become doulbe in the end, so it will not affect the result.
Extended data:
MATLAB consists of a series of tools. These tools are convenient for users to use MATLAB functions and files, and many of them use graphical user interfaces. Including MATLAB desktop and command window, historical command window, editor and debugger, path search and browser for users to browse help, workspace and files.
The simple programming environment provides a relatively complete debugging system, the program can run directly without compilation, and errors can be reported and analyzed in time.
Baidu encyclopedia -MATLAB