동공
2011-04-12 22:16:36

ㅇㅇ

▼ more
심장생리
2011-04-12 20:47:43

ㅁㅁ

▼ more
matlab 신호처리
2011-04-12 19:26:25

medinfo.snu.ac.kr/matlab_code.zip

▼ more
matlab (graph)
2011-04-12 19:21:57

plot(X,Y)

plot(X,Y,'*')

A=[0:0.01:5];

B=sin(A);

C=cos(A);

plot(A,B,'b-',A,C'r:') -는 선 :는 땡땡이 b는 블루 r은 빨강 변수들 이 같으면 마지막엔 그릴 문자..

figure : 새로운 그림판 생성

hold on : 겹쳐 그리기

hold off : 지우고 그리기

subplot(a,b,c) : 작은 그림 그리기

- a x b 그림 중 c번째 그림 활성화

xlabel : x축 제목

ylabel : y축 제목

title : 그림 제목

grid on : 격자

plot3는 3d

t=0:pi/50:10*pi;plot3(sin(t),cos(t),t)

edit 해서 펑션만들고 저장할때 add to path하면 그냥 일반적인 함수처럼 쓸수 있다.

BMI구하는법

function y=BMI(weight,height)

%

% Calculate y = weight[kg]/height[m]^2) 이부분이 help에 나온다.

%

y=weight/(height*height);

sym('y'), syms x y w z

solve는 equation.

[x y] = solve('x+2*y=20','2*x-y=6')

x=32/5, y=34/5

symbolic solution

dsolve..

y''+4y'+3y=0, y'(0)=0, y(0) = 1

dsolve('D2y+4*Dy+3*y=0','Dy(0)=0','y(0)=1');

D가 미분

y = dsolve('D2y + 4*Dy+3*y=0', 'Dy(0) = 0','y(0)=1'); ezplot(y);

ezplot??

save array.mat 그냥 다 저장

load array.mat 그냥 다부름

dir 데이터 디렉토리의 파일을 본다.

ls 이건뭐가 다르지...

▼ more