MATLAB - plot examples / 매틀랩 - plot 예제
Example 1) x = [-10 : 0.01 : 10]; y = 3*x.^4 + 2*x.^3 + 7*x.^2 + 2*x + 9; g = 5*x.^3 + 9*x + 2; plot(x, y, 'r', x, g, 'g') (w : White, k : Black, b : Blue, r : Red, C : Cyan, g : Green, m : Magenta, y : Yellow) Example 2) x=[0 : 0.01 : 10]; y = sin(x); g = cos(x); plot(x, y, x, g, '.-'), legend('Sin(x)', 'Cos(x)') Example 3) x = [0 : 0.01: 10]; y = exp(-x).* sin(2*x + 3); plot(x, y), axis([0 10 ..
2021. 1. 27.