Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- FTCS
- 파이썬
- heap
- Compressible Flow
- Statistics
- 회귀
- 통계학
- 이중우선순위큐
- 프로그래머스
- 예제
- 힙
- Fluid Dynamics
- projecteuler
- 프로젝트오일러
- Laminar
- Python
- Crank-Nicolson
- python3
- Boundary Layers
- Heat Equation
- Navier-Stokes
- 디스크 컨트롤러
- Fluids
- regression
- 우선순위큐
- Turbulent
- Finite Difference Method
- 유체역학
- programmers
- Blasius
Archives
- Today
- Total
Sudal's Garage
Second order regression 본문
clear all; close all; x = [-3 -1 1 3]; y = [1.3 1.5 1.4 1.2]; G = ones(length(x),3); G(:,2) = x'; G(:,3) = x'.^2; beta = (G'*G)\G'*y'; A = beta(1); B = beta(2); C = beta(3); scatter(x,y,'filled') hold on x = linspace(-3,3); plot(x,A + B*x + C*x.^2)
Figure:
'Programming > MATLAB' 카테고리의 다른 글
Finite Differential Method for the Heat Equation, CN Method (0) | 2019.03.16 |
---|---|
MATLAB, pause를 이용한 움직이는 그래프, animation using pause (0) | 2019.03.03 |
FTCS Method 의 Stability (0) | 2019.02.28 |
Finite Difference Method for the Heat Equation, FTCS Method (0) | 2019.02.27 |
MATLAB, implicit Euler Method, Global Truncation Error, BVPs, Fourier Transform (0) | 2019.02.16 |