Current location - Education and Training Encyclopedia - Graduation thesis - How to draw the probability density function of normal distribution with MATLAB
How to draw the probability density function of normal distribution with MATLAB
Draw a normal distribution curve with matlab, please refer to the following steps.

1. First, organize the data files to be analyzed into matrix files, that is, data files with clear rows and columns.

2. After opening the matlab software, click "Import Data" in the menu bar to prepare to load the data that needs statistical analysis.

3. After opening the loading interface, find the data file to be loaded and click "Open".

4. In the loading interface, select "Matrix" matrix list as the type, then select the column data to import, and then click "impress selection" on the right to import.

5. After importing, click the imported matrix list, as shown in figure "S260". Be careful not to open it. Just select it and click "plots" in the menu. In the drawing toolbar, click the small triangle to the right of the icon to open more chart types.

6. In the expanded matlab icon, find "histfit" and click it.

7. After the above settings are completed, the normal distribution curve of data can be drawn by matlab.