본문 바로가기

MATLAB8

simulink [error using ==>open at 158] 시뮬링크에서 작업하던 파일이 열리지 않게 되었음. error using ==>open at 158 이라는 에러와 함께 ISO-8859-1 뭐시기 에러가 났다. 아무래도 문자 인코딩 에러인듯. 해결방법은 matlab 창에서 아래를 입력 bdclose all; slCharacterEncoding('ISO-8859-1'); 2010. 10. 17.
MATLAB & Simulink Based Books MATLAB & Simulink Based Books - Feedback Control of Dynamic Systems... ... MATLAB & Simulink Based Books Feedback Control of Dynamic Systems, 5e Feedback Control of Dynamic Systems, 5e Gene F. Franklin, Stanford University J. David Powell, Stanford ... MATLAB & Simulink Based Books - Control of Spacecraft and Aircraft ... the linear-quadratic regulator (LQR) method of feedback control synthesis .. 2009. 11. 19.
MATLAB 원 그리기. center=[0 0]; %중심점r=200; %반지름N=1000; %개수theta=linspace(0,2*pi,N); %원(라디안)x=r*cos(theta)+center(1); y=r*sin(theta)+center(2); plot(x,y); axis equal; %좌표축. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%운동장 모양 설마 이건 헛진거리 한건 아니겠지 ㅠㅠ clear allclc center=[0 0]; %중심점r=70; %반지름N=1000; %원의 점 개수NL = 600; %선의 점 개수*2 theta=linspace(0,2*pi,N); %원(라디안)x=r*cos(theta)+center(1); y=r*sin(theta)+center(2);.. 2009. 11. 6.
matlab shortcuts. 단축키. ctrl+R : 주석처리ctrl+T : 주석해제 ctrl+I : 코드 줄맞춤 tab : 텝만큼 우측으로 이동.shift+tab : 텝만큼 좌측으로 이동. 추가.수식이 길 경우 A = asdf+asdf+asdf+asdf+asdf...+qwer+qwer+qwer+qwer; ...을 써준다. http://blogs.mathworks.com/seth/page/6/ 2009. 11. 3.
MATLAB BODE PLOT. num = [4500];den = [1 1 0]; G = tf(num , den);G1 = tf(1, den); G = G*G1; P = bodeoptions; % Set phase visiblity to off and frequency units to Hz in optionsP.PhaseVisible = 'on';P.FreqUnits = 'Hz'; % Create plot with the options specified by P bode(G,P)grid on >>help bodeoptions BODEOPTIONS Creates option list for Bode plot. P = BODEOPTIONS returns the default options for Bode plots. This list of.. 2009. 9. 16.
MATLAB 미적. 미분 Examples: h = .001; x = 0:h:pi; diff(sin(x.^2))/h is an approximation to 2*cos(x.^2).*x diff((1:10).^2) is 3:2:19 If X = [3 7 5 0 9 2] then diff(X,1,1) is [-3 2 -3], diff(X,1,2) is [4 -2 9 -7], diff(X,2,2) is the 2nd order difference along the dimension 2, and diff(X,3,2) is the empty matrix. >> syms x>> diff(sin(x), x) ans = cos(x) 적분 int (S, v, a, b) S : 수식, v : 인자, a : 시작값, b : 끝값 Examples.. 2009. 9. 15.