π >> x=linspace(0,2*pi,30); >> y=sin(x); >> plot(x,y) π

Similar documents
Microsoft PowerPoint - 기계공학실험1-1MATLAB_개요2D.pptx

예제 1.1 ( 관계연산자 ) >> A=1:9, B=9-A A = B = >> tf = A>4 % 4 보다큰 A 의원소들을찾을경우 tf = >> tf = (A==B) % A

Matlab Graphics

Orcad Capture 9.x

MATLAB for C/C++ Programmers

제 3장 그래프 속성의 설정과 2차원 그래프

fx-82EX_fx-85EX_fx-350EX

% Rectangular Value 입력 t = -50 : 1 : 50; % 시간영역 for i = 1 : 101 if abs ( t ( i ) ) < 10 x ( i ) = 1; else x ( i ) = 0; % 화면을 2 열 1 행으로나눈후 % 2 열 1 행에 R

Columns 8 through while expression {commands} 예제 1.2 (While 반복문의이용 ) >> num=0

<4D F736F F F696E74202D204D41544C4142B0ADC0C7B7CF28B9E8C6F7BFEB295F3031C0E55FBDC3C0DBC7CFB1E22E BC8A3C8AF20B8F0B5E55D>

데이터 시각화

TRIBON 실무 DRAFT 편 조선전용 CAD에 대한 기초적인 사용 방법 기술 기술지원팀

삼성955_965_09

PowerPoint 프레젠테이션

DocsPin_Korean.pages

PowerPoint Presentation

PowerSHAPE 따라하기 Calculate 버튼을 클릭한다. Close 버튼을 눌러 미러 릴리프 페이지를 닫는다. D 화면을 보기 위하여 F 키를 누른다. - 모델이 다음과 같이 보이게 될 것이다. 열매 만들기 Shape Editor를 이용하여 열매를 만들어 보도록

차례 제 1 장 MATLAB 연습 MATLAB에서사용되는기호들

Week3

歯MW-1000AP_Manual_Kor_HJS.PDF

Application TI-89 / Voyage TM 200 PLT application. application, application. APPLICATIONS :, N. 1. O application. 2. application : D C application,. a

목차 제 1 장 inexio Touch Driver소개 소개 및 주요 기능 제품사양... 4 제 2 장 설치 및 실행 설치 시 주의사항 설치 권고 사양 프로그램 설치 하드웨

untitled

Structure and Interpretation of Computer Programs: Assignment 3 Seung-Hoon Na October 4, George (아래 3개의 문제에 대한 구현이 모두 포함된 george.rkt파일을 제출하시오.

436 8., {(x, y) R 2 : y = x, < x 1} (, 1] φ(t) = (t, t), (, 2] ψ(t) = (t/2, t/2), [1, ) σ(t) = (1/t, 1/t).. ψ φ, σ φ. (φ, I) φ(i) φ : I φ(i). 8.2 I =

강의10

4 CD Construct Special Model VI 2 nd Order Model VI 2 Note: Hands-on 1, 2 RC 1 RLC mass-spring-damper 2 2 ζ ω n (rad/sec) 2 ( ζ < 1), 1 (ζ = 1), ( ) 1

fx-570EX_fx991EX

OR MS와 응용-03장

Microsoft PowerPoint - 7-Work and Energy.ppt

< C0FCC0CEC3CA2E687770>

untitled

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠?

LiDAR A utomatic D etection for Misclassified A erial LiD A R D TD

09È«¼®¿µ 5~152s

PowerPoint 프레젠테이션

2005 7

Advanced Engineering Mathematics


LCD Display

cat_data3.PDF

PRO1_09E [읽기 전용]

MATLAB for C/C++ Programmers

public key private key Encryption Algorithm Decryption Algorithm 1

Slide 1

PRO1_04E [읽기 전용]

해양모델링 2장5~ :26 AM 페이지6 6 오픈소스 소프트웨어를 이용한 해양 모델링 물리적 해석 식 (2.1)의 좌변은 어떤 물질의 단위 시간당 변화율을 나타내며, 우변은 그 양을 나타낸 다. k 5 0이면 C는 처음 값 그대로 농

1

확률 및 분포

Multi-pass Sieve를 이용한 한국어 상호참조해결 반-자동 태깅 도구

2 x10 목 차 1. 일반 정보 1. 점검 사항 2. 주의 및 관리 3. 방수 4. 배터리 충전하기 2. 순토 X10 사용 방법 1. 화면과 버튼 (1) 모드 표시 (2) 배터리 용량 표시 (3) 알람 심볼 (4) GPS 수신 표시 2. 메뉴 (1) 기본 메뉴 구조

Solaris Express Developer Edition

한글사용설명서

산선생의 집입니다. 환영해요

<C0E5B7C1BBF328BEEEB8B0C0CCB5E9C0C729202D20C3D6C1BE2E687770>


???? 1

untitled

01-OOPConcepts(2).PDF

ch3.hwp

untitled

untitled

CONTENTS 01 Adobe Photoshop Lightroom을 소개합니다 촬영부터 출력까지 간편한 사진 작업 (Simplify photography from shoot to finish) Adobe Photoshop Lightroom 작업공간(Workspace)

1 Nov-03 CST MICROWAVE STUDIO Microstrip Parameter sweeping Tutorial Computer Simulation Technology

chap10.PDF

8-VSB (Vestigial Sideband Modulation)., (Carrier Phase Offset, CPO) (Timing Frequency Offset),. VSB, 8-PAM(pulse amplitude modulation,, ) DC 1.25V, [2

Smart Power Scope Release Informations.pages

슬라이드 1

Microsoft PowerPoint 다변수 방정식과 함수(1).ppt

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE. vol. 28, no. 3, Mar guidance system: MGS), MGS. MGS, (pulse repetit

휠세미나3 ver0.4

step 1-1

PowerPoint 프레젠테이션

LIDAR와 영상 Data Fusion에 의한 건물 자동추출

Microsoft PowerPoint - Chapter 4 Biomechanics-이정찬.ppt [호환 모드]

Microsoft Word - matlab.doc

PowerPoint Presentation

EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :

2 : 3 (Myeongah Cho et al.: Three-Dimensional Rotation Angle Preprocessing and Weighted Blending for Fast Panoramic Image Method) (Special Paper) 23 2

歯기구학

SW_faq2000번역.PDF

서보교육자료배포용.ppt

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

제 1 부 연구 개요

MAX+plus II Getting Started - 무작정따라하기

05 목차(페이지 1,2).hwp

untitled

Mentor_PCB설계입문

plot1.nb

Manufacturing6

4.1 힘의모멘트 스칼라공식 4.1 힘의모멘트 스칼라공식 모멘트크기 (resultant moment) 2

슬라이드 1

CAM350 Family (I) CAM350 Family CAM CAD (Gerber, HPGL, DXF),,. CAM350 Family ACCESS Code GerberView-II, PCGerber-II, ECAM-II, CAM350,. Gerber Data Pho

BK21 플러스방법론워크숍 Data Management Using Stata 오욱찬 서울대사회복지학과 BK21 플러스사업팀

Chapter4.hwp

C++-¿Ïº®Çؼ³10Àå

슬라이드 1

1508 고려 카달록

유해중금속안정동위원소의 분석정밀 / 정확도향상연구 (I) 환경기반연구부환경측정분석센터,,,,,,,, 2012

untitled

Transcription:

π >> x=linspace(,2*pi,3); >> y=sin(x); >> plot(x,y) - - - - - 2 3 4 5 6 7 π

>> x=linspace(,2*pi,3); y=sin(x); z=cos(x); >> plot(x,y,x,z) - - - - - 2 3 4 5 6 7 >> x=linspace(,2*pi,3); y=sin(x); z=cos(x); >> W=[y;z]; % create a matrix of the sin and cosine >> plot(x,w) >>plot(w,x) 7 6 5 4 - - - - 3 2-2 3 4 5 6 7 - - - - -

>> plot(x,y,'g:', x,y,'ko, x,z,'r--', x,z,'c+') - - - - - 2 3 4 5 6 7

>> x=linspace(,2*pi,3); >> y=sin(x); z=cos(x); >> plot(x,y,x,z) >> grid % turn on grid lines >> xlabel('independent Variable X') % x-axis label >> ylabel('dependent Variables Y and Z') % y-axis label >> title('sine and Cosine Curves') % title the plot

>> text(2.5,.7, 'sin(x)') >> gtext('cos(x)') Sine and Cosine Curves sin(x) Dependent Variables Y and Z - - - cos(x) - - 2 3 4 5 6 7 Independent Variable X

>> axis off % turn off the axes >> axis on, grid off Sine and Cosine Curves Sine and Cosine Curves sin(x) sin(x) cos(x) Dependent Variables Y and Z - - cos(x) - - - 2 3 4 5 6 7 Independent Variable X >> axis ij >> axis('square', 'equal') % turn the plot upside down % give axis two commands at once - Sine and Cosine Curves Sine and Cosine Curves - -2 - -.5 Dependent Variables Y and Z - - cos(x) Dependent Variables Y and Z - -.5.5 cos(x) sin(x) sin(x).5 2 2 3 4 5 6 7 Independent Variable X 2 3 4 5 6 Independent Variable X >> axis('xy','normal') % return to the defaults

>> x=linspace(,2*pi,3); y=sin(x); z=cos(x); >> plot(x,y) >> hold on >> plot(x,z,'m') >> hold off - - - - - 2 3 4 5 6 7

>> x=linspace(,2*pi,3); >> y=sin(x); z=cos(x); >> a=2*sin(x).*cos(x); b=sin(x)./(cos(x)+eps); >> subplot(2,2,); plot(x,y), axis([ 2*pi - ]), title('sin(x)') >> subplot(2,2,2); plot(x,z), axis([ 2*pi - ]), title('cos(x)') >> subplot(2,2,3); plot(x,a), axis([ 2*pi - ]), title('2sin(x)cos(x)') >> subplot(2,2,4); plot(x,b), axis([ 2*pi -2 2]), title('sin(x)/cos') >> subplot(,,) % return to a single plot in the figure window

>> orient % what is the current orientation? ans = portrait >> orient landscape % print sideways on the page >> orient tall % stretch to fill the vertical page >> print -djpeg myfig.jpg % make a jpeg file for the figure >> x = linspace(-5,5,5); y = exp(-x.*x); >> plot(x,y); grid >> semilogy(x,y); grid.9.7.5.3. -5-4 -3-2 - 2 3 4 5-2 -4-6 -8 - -2-5 -4-3 -2-2 3 4 5

>> t=:.:2*pi; >> r=sin(2*t).*cos(2*t); >> polar(t,r) >> title('polar Plot of sin(2t)cos(2t)') Polar Plot of 9 sin(2t)cos(2t).5 2.375 6 5 5 3 5 8 2 33 24 27 3 >> x=-2.9::2.9; y=exp(-x.*x); >> bar(x,y) >> stairs(x,y) >> title('bar Chart of a Bell Curve') >> title('stair Chart of a Bell Curve') Bar Chart of a Bell Curve Stair Chart of a Bell Curve.9.9.7.7.5.5.3.3.. -3-2 - 2 3-3 -2-2 3

>> x=-2.9::2.9; % specify 29 bins to use >> y=randn(5,); % create 5 random points >> hist(y,x) % draw the histogram 45 4 35 3 25 2 5 5-3 -2-2 3 >> y=randn(5,); % create some random data >> stem(y,':') % draw a stem plot with dotted line 2.5 2.5.5 -.5 - -.5-2 5 5 2 25 3 35 4 45 5

>> x=:.:2; % create a vector >> y=erf(x); % y is the error function of x >> e=rand(size(x))/; % generate random error values >> errorbar(x,y,e) % create the plot.2 - -.5.5.5 2 2.5 >> z=eig(randn(2,2)); >> compass(z) >> feather(z) 2 9 4.52 6 5 3.384 4 5 2.256 3 3.28 2 8-2 33-2 -3-4 24 27 3-5 5 5 2 25

>> t=randn(,)*pi; >> rose(t) >> title('angle Histogram of Random Angles') Angle Histogram 9 of Random Angles 6 2 6 4 5 2 3 8 2 33 24 27 3 >> x=linspace(-2*pi,2*pi,6); >> y=sin(x).^2./(x+eps); >> plot(x,y) >> title('plot of sin(x)^2/x') >> >> [a,b]=ginput(8); % get up to 8 points >> hold on >> plot(a,b,'co') % plot the collected points >> hold off

Plot of sin(x) 2 /x - - - - -8-6 -4-2 2 4 6 8 >> fplot('sin(x)./x', [-2 2 -.4.2]) - - -2-5 - -5 5 5 2

>> t=(/8:2/8:5/8)'*pi; % column vector with 8 elemets >> x=cos(t); % x coordinate of points on a unit circle >> y=sin(t); % y coordinate of points on a unit circle >> fill(x,y,'r') % a filled red circle using only 8 points >> axis('square') >> text(,,'stop') >> title('red Stop Sign') Red Stop Sign STOP - - - - - - -.5.5

t >> t=:pi/5:*pi; >> plot3(sin(t),cos(t),t) >> title('helix'), xlabel('sin(t)'), ylabel('cos(t)'), zlabel('t') Helix 4 3 2.5 cos(t) -.5 - - -.5 sin(t).5 >> x = :4; y = 2:2:6; >> [X,Y] = meshgrid(x,y) X = 2 3 4 2 3 4 2 3 4

Y = 2 2 2 2 4 4 4 4 6 6 6 6 >> x=-7.5:.5:7.5; >> y=-7.5:.5:7.5; >> [X,Y]=meshgrid(x,y); >> R=sqrt(X.^2+Y.^2)+eps; % distance from the origin (,) >> Z=sin(R)./R; % calculate sin(r)/r >> mesh(x,y,z) >> surf(x,y,z)

>> mesh(peaks) >> title('mesh Plot of the Peaks Function') >> [x,y,z]=peaks; >> contour(x,y,z,2) >> contour3(x,y,z,2) % generate 2 2-D contours % the same contour plot in 3-D 3 2 5-5 - - -2-3 -3-2 - 2 3 2-2 -3-2 - 2 3

>> [x,y,z]=peaks(2); >> [x,y,z]=peaks; >> pcolor(x,y,z) >> pcolor(z);colormap(hot);shading flat >> colormap default, shading faceted >> hold on, contour(z,2,'k'), hold off

>> subplot(2,2,); mesh(peaks(2)); >> subplot(2,2,2); mesh(peaks(2)); view(,); title('view(,)') >> subplot(2,2,3); mesh(peaks(2)); view(-9,); title('view(-9,)') >> subplot(2,2,4); mesh(peaks(2)); view(,9); title('view(,9)') >> view([-7-9 7]) % view through (-7,-9,7) to the origin >> [az,el]=view % find the azimuth and elevation az = -37.875 el = 3.5475

>> mesh(peaks(2)+7) % coarse (2) mesh, shifted up >> hold on; pcolor(peaks(2)); hold off >> hidden on >> hidden off >> title('mesh with Hidden On') >> title('mesh with Hidden Off') >> meshc(peaks); >> meshz(peaks)

>> colormap(gray) >> surfl(peaks), shading interp >> title('surfl Plot of Peaks with Default Lighting')

>> fill3(rand(3,4),rand(3,4),rand(3,4),rand(3,4)).5 >> P = [- - ; - 2; 3; 4]; >> X=P(:,); Y=P(:,2); Z=P(:,3); C=P(:,4); >> T = [ 2 3; 2 4; 2 3 4; 3 4]'; >> fill3(x(t), Y(T), Z(T), C(T)).5.5 -.5.5 - - -.5

>> mesh(peaks) >> colormap(hsv) >> colorbar

π π

θ θ θ θ π π π π cos π cos sin sin θ θ θ θ θ θ