Scatter(varargin)

버전 1.0.0.0 (6.92 KB) 작성자: ANKUR KUMAR
Plot the fitting line with statistics on Scatter plot
다운로드 수: 57
업데이트 날짜: 2018/1/9

라이선스 보기

Created by Ankur Kumar Wednesday; January 03, 2018
Version: 1.0
National Institute of Techonology, Rourkela
Rourkela, Odisa - 769008, India
Department of Earth and Atmospheric Sciences
Email: ankurk017@gmail.com
416AS2025@nitrkl.ac.in

Function:
One can draw the Scatter Plot with the figure handling options
along with the polynomial fitting of degree 1. This function
gives the basis statistics i.e. BIAS, Correlation Coefficient,
Standard Deviation of both variables, Root Mean Square Error
and write on the graph too. If you dont want statistics on the
plot, then you can change the format in the function itself.

Syntax:
Scatter([2,3,6,4,7],[1,2,5,10,89])
Scatter([2,3,6,4,7],[1,2,5,10,89],20)

Inputs:
First and second input should be the datas of scatter plot,
which you want to plot. First variable will plot on the X axis
and second variable will plot on the Y axis.
If you want to specify the size of marker size, write its size
as in the third argument.
Use LineWidth, MarkerFaceColor, MarkerFaceAlpha, LineWidth,
TextColor and Format to modify the Scatter Plots.
If you don't want the Statistics to print on your Scatter,
then write 0 as the Format argument.
There are 2 formats available presently, 1 and 2. Format 1 is
for the supressed statistics and Format 2 is the detail
Statistics.

For format 1, the equation of the fitting line is written on
the first line. Standard Deviation of X and Y is on the second.
SD of Y is in bracket. Correlation is also on the second line
seperated by slant. Bias and RMSE is on the third line.

You can store the output in variables to set the properties of
these lines later in the program.

Example:
Scatter([2,3,6,4,7],[1,2,5,10,89],20,'LineWidth',1)
Scatter([2,3,6,4,7],[1,2,5,10,89],20,'LineWidth',1,'MarkerFaceColor','r')
Scatter([2,3,6,4,7],[1,2,5,10,89],20,'LineWidth',1,'MarkerFaceColor','r','LineColor','r')
Scatter([2,3,6,4,7],[1,2,5,10,89],20,'Format',1)
[a b]=Scatter([2,3,6,4,7],[1,2,5,10,89],20,'Format',1)
[a,b,c,d,e,f]=Scatter([2,3,6,4,7],[1,2,5,10,89],20,'Format',1)

인용 양식

ANKUR KUMAR (2024). Scatter(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/65638-scatter-varargin), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0