linfitplot(x, y, markerColor, lineColor, printRhoR2)

버전 1.1.0.0 (2.45 KB) 작성자: Ruggero G. Bettinardi
Compute scatterplot and plot linear fit together with Rho and R-squared
다운로드 수: 66
업데이트 날짜: 2017/8/23

라이선스 보기

call:

linfitplot(x, y, markerColor, lineColor, printRhoR2)

Given two vectors 'x' and 'y', the function compute and plot the linear fit, with the Correlation
Coefficient (Rho) between 'x' and 'y' and the Coefficient of Determination (R^2, "how much knowing
x it is possible to determine y").

Note: This function calls 'linfit.m'

INPUT

x : independent variable
y : dependent variable
markerColor : a string ('r', 'b' , 'none', ...) or [1 0 0], [0 0.5 0] ...
lineColor : a string ('r', 'b' , 'none', ...) or [1 0 0], [0 0.5 0] ...
printRhoR2 : if 1, print the Rho and R2 values

note: 'markerColor' and 'lineColor' can be left empty [].
in this case they will take the default values (black).

인용 양식

Ruggero G. Bettinardi (2024). linfitplot(x, y, markerColor, lineColor, printRhoR2) (https://www.mathworks.com/matlabcentral/fileexchange/62984-linfitplot-x-y-markercolor-linecolor-printrhor2), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
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.1.0.0

Plot transparent markers so to being able to appreciate their density.
Print Rho and R-squared rounded by 2 decimals. [optional]

1.0.0.0