Matlab toàn tập

thanh hao

<b>Giải nhất vòng 2 cuộc thi NPD11 năm 2010</b>
Author
Thấy anh em sôi nổi trong đề tài này mình củng góp vui một tác phẩm nhé.nhung mình thấy nó dùng cho bên điện thì đúng hơn.
Mình gữi anh em cuôn matlab toàn tập
Nội dung chính:
Matlab toàn tập
Cài đặt Matlab
Chương 1: Giới thiệu chung
Chương 2: Các đặc tính kĩ thuật
Chương 3: Những đặc điểm của cửa sổ lệnh
Chương 4: Script m_files
Chương 5: Quản lý tệp
Chương 6: Các phép toán với mảng
Chương 7: Các phép tính với mảng
Chương 8: Các phép tính logic và quan hệ
Chương 9: Văn bản
Chương 10 Thời gian
Chương 11 Vòng lặp điều khiển
Chương 12 Hàm m_file
Chương 13 Phân tích dữ liệu
Chương 14 Đa thức
Chương 15 Phép nội suy và mịn hoá đường cong
Chương 16 Phân tích số liệu.
Chương 17 Đồ hoạ trong hệ toạ độ phẳng
Chương 18 Đồ hoạtrong không gian 3 chiều
Chương 19 Mảng tế bào và cấu trúc
Chương 20 Biểu tượng của hộp công cụ toán học
Chương 21 Hộp công cụ hệ thống điều khiển
Chương 22 Hộp dụng cụ xử lí tín hiệu
Chương 23 Trợ giúp</SPAN>

link:http://www.4shared.com/file/105548690/24104393/5-MATLAB-toantap.html
or: [LEFT]

Code:
http://www.mediafire.com/?nue2wyvgxyz
[/LEFT]
 
Last edited:
H

huyhoang_ht2

Chuyên mục này trầm quá anh ơi,em mới học môn dao động kĩ thuật và thấy phần mềm này rất hữu ích đặc biệt cho kĩ sư chế tạo máy,nhưng hiểu biết và học được nó thì...Vậy anh em nào có kinh nghiệm gì chia sẻ em với.thanks.
 
Phần mềm này thì kiếm đơn giản mà, bạn ra hàng đĩa, rất rẻ.
Nhiều người từ trước đến giờ cứ nghĩ rằng Matlab chỉ dùng cho bên điện (vì có phần simulink). Nhưng thực tế, ứng dụng của Matlab rất rộng, dùng cả cho bên Cơ khí, bên điều khiển, ... Đặc biệt trong việc xử lý toán học. Thiết kế các chi tiết máy, dùng phương pháp phần tử hữu hạn mà có Matlab hỗ trợ thì rất hay. Hay trong các phần thực nghiệm, dùng Matlab để tìm các giá trị tối ưu, hay phần hồi quy cũng rất tiện.
 
Last edited:
H

hoduylinhconan

anh em nào có phần mềm này upload lên cho em với
xin cám ơn
của bạn đây

http://www.ziddu.com/download/5378320/MathWorksMATLABR2009a.rar.html




Còn đây là 1 số ebook khá hay về Matlab
1. A Guide to MATLAB for Beginners and Experienced Users - Hunt Lipsman & Rosenberg.pdf
2. A Guide to MATLAB Object-Oriented Programming - Andy H. Register.pdf
3. Adaptive Filtering Primer with MATLAB - Poularikas and Ramadan.pdf
4. Advanced Mathematics and Mechanics Applications Using MATLAB - Howard B. Wilson.pdf
5. Algorithm Collections for Digital Signal Processing Applications using Matlab - E.S. Gopi.pdf
6. An Introduction to Programming and Numerical Methods in MATLAB - S.R. Otto & J.P. Denier.pdf
7. Antenna and EM Modeling with MATLAB - Sergey N. Makarov.pdf
8. Applied Numerical Methods Using MATLAB - Yang Cao Chung and Morris.pdf
9. Applied Statistics Using SPSS, STATISTICA, MATLAB and R - Joaquim P. Marques.pdf
10. Basics of MATLAB and Beyond - Andrew Knight.pdf
11. Biosignal and Biomedical Image Processing MATLAB based Applications - John L. Semmlow.pdf
12. Business Economics & Finance with Matlab GIS and Simulation Models - Patrick L.Anderson.pdf
13. Chemical Process Control a First Course with Matlab - P.C. Chau.pdf
14. Circuit Analysis II with MATLAB - Steven T. Karris.pdf
15. Classical Feedback Control with MATLAB - Boris J. Lurie and Paul J. Enright.djvu
16. Classification Parameter Estimation & State Estimation An Engg Approach Using MATLAB.pdf
17. Computational Colour Science Using MATLAB - Stephen Westland & Caterina Ripamonti.pdf
18. Computational Mathematics Models Methods and Analysis with Matlab - Robert E. White.pdf
19. Computational Statistics Handbook with MATLAB - Martinez & Martinez.pdf
20. Contemporary Communication Systems using Matlab - Proakis and Salehi.pdf
21. Digital Circuit Analysis and Design with Simulink Modeling - Steven T. Karris.pdf
22. Digital Image Processing Using Matlab - Gonzalez Woods & Eddins.pdf
23. Digital Signal and Image Processing Using MATLAB - Gerard Blanchet & Maurice Charbit.pdf
24. Digital Signal Processing - Computer Based Approach - Sanjit K. Mitra.pdf
25. Digital Signal Processing Using Matlab V4 - Ingle and Proakis.pdf
26. Dynamic Simulations of Electric Machinery - Chee Mun Ong.djvu
27. Electronic Devices and Amplifier Circuits with MATLAB Applications - Steven T. Karris.pdf
28. Electronics and Circuit Analysis Using MATLAB - John O. Attia.pdf
29. Elem. Math. and Comp. Tools for Engineers using MATLAB - J. Manassah.pdf
30. Embedded Control Systems in C C++ Using MATLAB - Jim Ledin.chm
31. Embedded Image Processing with DSP Examples in MATLAB - Shehrzad Qureshi.pdf
32. Engineering Analysis Interactive Methods and Programs with MATLAB - Y. C. Pao.pdf
33. Engineering and Scientific Computations Using MATLAB - Sergey E. Lyshevski.pdf
34. Environmental Modeling Using MATLAB - Ekkehard Holzbecher.pdf
35. Essential MATLAB for Engineers and Scientists - Brian D. Hahn & Daniel T. Valentine.pdf
36. Exploratory Data Analysis with MATLAB - Martinez and Martinez.pdf
37. Fundamentals of Electromagnetics with Matlab - Lonngren & Savov.pdf
38. Graphics and GUIs with MATLAB - Patrick Marchand and O. Thomas Holland .pdf
39. Introduction to Fuzzy Logic using MatLab - Sivanandam Sumathi and Deepa.pdf
40. Introduction to MATLAB - Sikander M. Mirza.pdf
41. Introduction to Simulink with Engineering Applications - Steven T. Karris.pdf
42. Intuitive Probability and Random Processes Using MatLab - Steven M. Kay.pdf
43. Kalman Filtering Theory and Practice Using MATLAB - Grewal and Andrews.pdf
44. MathWorks Documentation - MATLAB V7 Function References.pdf
45. MathWorks Documentation - MATLAB V7 Introductory and Programming.pdf
46. MATLAB Guide - Desmond J. Higham & Nicholas J. Higham.djvu
47. MATLAB Primer (6th Ed) - Kermit Sigmon & Timothy A. Davis.pdf
48. MATLAB Primer (7th Ed) - Timothy A. Davis & Kermit Sigmon.pdf
49. MATLAB Programming - David Kuncicky.pdf
50. MATLAB Recipes for Earth Sciences - M.H.Trauth.pdf
51. MATLAB Simulations for Radar Systems Design - Bassem R. Mahafza & Atef Z. Elsherbeni.pdf
52. Mechanics of Composite Materials with MATLAB - George Z. Voyiadjis & Peter I. Kattan.pdf
53. Numerical Analysis Using MATLAB and Excel - Steven T. Karris.pdf
54. Numerical Analysis Using MATLAB and Spreadsheets - Steven T. Karris.pdf
55. Numerical Computing with MATLAB - Cleve Moler.pdf
56. Numerical Methods in Engineering with MATLAB - Jaan Kiusalaas.pdf
57. Numerical Methods in Finance & Economics A MATLAB based Introduction - Paolo Brandimarte.pdf
58. Numerical Methods using MATLAB - Mathews and Fink.pdf
59. Numerical Techniques for Chemical & Biological Engineers Using MATLAB - Elnashaie & Uhlig.pdf
60. Optical Scanning Holography with MATLAB - Ting Chung Poon.pdf
61. Optics Learning by Computing with Examples using MATLAB - K.D. Moller.pdf
62. Ordinary and Partial Differential Equation Routines in Matlab - H.J. Lee & W.E. Schiesser.pdf
63. Radar Systems Analysis and Design Using MatLab - Mahafza Bassem R.pdf
64. Robust Control Design with Matlab - Gu Petkov and Konstantinov.pdf
65. Scientific Computing with Matlab - Alfio Quarteroni & Fausto Saleri.djvu
66. Scientific Computing with Matlab and Octave - Alfio Quarteroni & Fausto Saleri.pdf
67. Signals and Systems with MATLAB Applications - Steven T. Karris.pdf
68. Signals and Systems with MATLAB Computing and Simulink Modeling - Steven T. Karris.pdf
69. Solving ODEs with MATLAB - Shampine Gladwell Thompson.pdf
70. Solving ODEs with Matlab Instructors Manual - L.F. Shampine.pdf
71. Spectral Methods in MATLAB - Lloyd N. Trefethen.pdf
72. The Finite Element Method using MATLAB - Kwon and Bang.pdf
73. Vibration Simulation Using MATLAB and ANSYS - Michael R Hatch.pdf
bạn có thể download tại đây
http://www.ziddu.com/download/5378345/Matlabhelp.rar.html

Lưu ý: đây là dạng file torrent nên bạn down về xong giải nén ra sẽ được các file torrent và các bạn dùng utorrent để tải về. utorrent cỏ thể tải tại đây:
http://utorrent.com/
 
Nói chung cứ gặp Matran la em cứ rối hết cả lên.
Nhưng làm cái Matlab nhìu rối thì ... !!!
 
MATLAB Tutorial: Getting Started with MATLAB

thấy mấy bác nói mathlab hay mà sao chả thấy cao thủ nào vào đây mở topic bàn luận gì cả hôm nay đọc tới cái này. liền lên youtube tìm kiếm xem sao kiếm được mấy video hướng dẫn cơ bản mathlab post lên cho anh em tham khảo và cùng nhau bàn luận tìm hiểu về nó :67:
http://www.youtube.com/profile?user=MATLAB&annotation_id=annotation_736368&feature=iv
 
Last edited:
Ðề: Matlab toàn tập

các anh ai có kinh nghiệm nhiều về matlab có thể bày cho em 1 số kiểu học nhanh để sử dụng trong dao động kĩ thuật được không? hiện nay em cũng đang học môn này nhưng có điều lại có matlab và ngỡ ngàng thì không thể tránh khỏi nên em mong được sự chỉ giáo của môn này và liên quan của matlab
em cảm ơn
 
V

vietnamnet

Ðề: Matlab toàn tập

Nói chung cứ gặp Matran la em cứ rối hết cả lên.
Nhưng làm cái Matlab nhìu rối thì ... !!!
Anh oi!Co the cho em cai nick yahoo để em có thể thỉnh giáo về matlab được không?em học về oto cũng dùng cái này mà trong cái matlab nhiều part quá.Không biết học phần nào mà ngành em cần đến nữa.Nói chung mù tịt em chưa biết học matlab từ đâu nữa.Mong anh cho ý kiến đóng góp.:18:
 
T

trungvp

Ðề: Matlab toàn tập

e đang làm matlab về mô phỏng trong vũng hàn các bác có ai biết về nó giúp e với. Thank
 
Ðề: Matlab toàn tập

matlab ah: minh thì cung có vai cai cjia se đấy
http://meslab.org/mes/album.php?albumid=119&pictureid=590


Chương trình Matlab:
clear all; clc;
qs=0; qt=3; b=5; h=10; P=10;
A=0.4; E=1.e+5; I=b*h^3/12;
nut=[1 0 0;2 20 0;3 0 5;4 0 10;5 20 10;6 26 10];
pt=[1 1 3 A E 2.5*I;2 2 5 A E 2.5*I;3 3 4 A E 2.5*I;4 4 5 A E I;5 5 6 A E I];
dk=[1 0;2 0;3 0;4 0;5 0];
luc=[7 P];
lucpb=[1 0 0;2 0 0;3 0 0;4 0 -qt;5 0 -qt];
%--------------------------------------------------------------------------
K=zeros(size(nut,1)*3);
F=zeros(size(nut,1)*3,1);
F(luc:),1))=luc:),2);
%--------------------------------------------------------------------------
for i=1:size(pt,1)
[K,F]=lap_ghep(i,nut,pt,E,A,I,qs,qt,K,F,lucpb)
end
btd=[1:size(nut,1)*3];
btd(dk:),1))=[];
u=(F(btd)-K(btd,dk:),1))*dk:),2))'/K(btd,btd)
cv=zeros(size(nut,1)*3,1);
cv(dk:),1))=dk:),2);
cv(btd)=u;
pl=K*cv-F
cv
%---------------------
-------------------------------------------------
%----------Ve luc doc truc-------------------------------------------------
figure('name','Bieu do luc doc','menubar','none','numbertitle','off')
axis([-10 30 -10 20]);
for i=1:size(pt,1)
f=0;
[cvl,L,x1,x2,y1,y2]=cv_diaphuong(i,nut,pt,cv);
x=0:0.5:L;
for j=1:size(x,2)
s=x(j);
f(j)=pt(i,4)*pt(i,5)*[-1/L 1/L]*cvl([1 4]);
end
ve_bieu_do(f,x,x1,x2,y1,y2,L);
end

%----------Ve moment-------------------------------------------------------
figure('name','Bieu do moment','menubar','none','numbertitle','off')
axis([-10 30 -10 20]);
for i=1:size(pt,1)
f=0;
[cvl,L,x1,x2,y1,y2]=cv_diaphuong(i,nut,pt,cv);
x=0:0.5:L;
for j=1:size(x,2)
s=x(j);
f(j)=pt(i,5)*pt(i,6)*[12*s/L^3-6/L^2 6*s/L^2-4/L 6/L^2-12*s/L^3 6*s/L^2-2/L]*cvl([2 3 5 6]);
f(j)=f(j)-1/12*lucpb(i,3)*(L^2-6*s*L+6*s^2);
end
ve_bieu_do(f,x,x1,x2,y1,y2,L);
end

%----------Ve luc cat------------------------------------------------------
figure('name','Bieu do luc cat','menubar','none','numbertitle','off')
axis([-10 30 -10 20]);
for i=1:size(pt,1)
f=0;
[cvl,L,x1,x2,y1,y2]=cv_diaphuong(i,nut,pt,cv);
x=0:0.5:L;
for j=1:size(x,2)
s=x(j);
f(j)=pt(i,5)*pt(i,6)*[12/L^3 6/L^2 -12/L^3 6/L^2]*cvl([2 3 5 6]);
f(j)=f(j)-lucpb(i,3)*(L-2*s)/2;
end
ve_bieu_do(f,x,x1,x2,y1,y2,L);
end


Các Chương trình con:
function [K,F]=lap_ghep(i,nut,pt,E,A,I,qs,qt,K,F,lucpb)
x1=nut(pt(i,2),2);x2=nut(pt(i,3),2);
y1=nut(pt(i,2),3);y2=nut(pt(i,3),3);
L=sqrt((x2-x1)^2+(y2-y1)^2);
lx=(x2-x1)/L;mx=(y2-y1)/L;
T=[lx mx 0 0 0 0;-mx lx 0 0 0 0;0 0 1 0 0 0;0 0 0 lx mx 0;...
0 0 0 -mx lx 0;0 0 0 0 0 1];
E=pt(i,5);A=pt(i,4);I=pt(i,6);
kl=[E*A/L 0 0 -E*A/L 0 0;...
0 12*E*I/L^3 6*E*I/L^2 0 -12*E*I/L^3 6*E*I/L^2;...
0 6*E*I/L^2 4*E*I/L 0 -6*E*I/L^2 2*E*I/L;...
-E*A/L 0 0 E*A/L 0 0;...
0 -12*E*I/L^3 -6*E*I/L^2 0 12*E*I/L^3 -6*E*I/L^2;...
0 6*E*I/L^2 2*E*I/L 0 -6*E*I/L^2 4*E*I/L];
k=T'*kl*T;
nut1=pt(i,2:3);
btd=zeros(6,1);
btd([1 4])=3*nut1-2;
btd([2 5])=3*nut1-1;
btd([3 6])=3*nut1;
f=L/2*[lucpb(i,2);lucpb(i,3);lucpb(i,3)*L/6;lucpb(i,2);lucpb(i,3);-lucpb(i,3)*L/6];
K(btd,btd)=K(btd,btd)+k;
F(btd)=F(btd)+f;

--------------------------------------o0o--------------------------------------




function [cvl,L,x1,x2,y1,y2]=cv_diaphuong(i,nut,pt,cv)
x1=nut(pt(i,2),2);x2=nut(pt(i,3),2);
y1=nut(pt(i,2),3);y2=nut(pt(i,3),3);
L=sqrt((x2-x1)^2+(y2-y1)^2);
lx=(x2-x1)/L;mx=(y2-y1)/L;
T=[lx mx 0 0 0 0;...
-mx lx 0 0 0 0;...
0 0 1 0 0 0;...
0 0 0 lx mx 0;...
0 0 0 -mx lx 0;...
0 0 0 0 0 1];
nut1=pt(i,2:3);
btd=zeros(6,1);
btd([1 4])=nut1*3-2;
btd([2 5])=nut1*3-1;
btd([3 6])=nut1*3;
cvl=T*cv(btd);
--------------------------------------o0o--------------------------------------
function xy=quay(xy,phi,xyc);
xy(1,:)=xy(1,:)-xyc(1);
xy(2,:)=xy(2,:)-xyc(2);
T=[cos(phi) -sin(phi);sin(phi) cos(phi)];
xy=T*xy;
xy(1,:)=xy(1,:)+xyc(1);
xy(2,:)=xy(2,:)+xyc(2);

--------------------------------------o0o--------------------------------------



function ve_bieu_do(f,x,x1,x2,y1,y2,L)
tl=max(abs(f))/(0.2*L);f=f/tl;
phi=atan2(y2-y1,x2-x1);
xy=quay([x;f],phi,[0 0]);
xy(1,:)=xy(1,:)+x1;
xy(2,:)=xy(2,:)+y1;
y=zeros(size(x));
xyo=quay([x;y],phi,[0 0]);
xyo(1,:)=xyo(1,:)+x1;
xyo(2,:)=xyo(2,:)+y1;
hold on
grid on
for i=1:length(xy)
plot([xyo(1,i) xy(1,i)],[xyo(2,i) xy(2,i)],'r');
plot(xy(1,:),xy(2,:),'r','linewidth',1);
end
hold on
plot([x1 x2],[y1 y2],'linewidth',3)
 
Ðề: Matlab toàn tập

hàm chuyển vị địa phương
function [cvl,L,x1,x2,y1,y2]=cv_diaphuong(i,nut,pt,cv)
x1=nut(pt(i,2),2);x2=nut(pt(i,3),2);
y1=nut(pt(i,2),3);y2=nut(pt(i,3),3);
L=sqrt((x2-x1)^2+(y2-y1)^2);
lx=(x2-x1)/L;mx=(y2-y1)/L;
T=[lx mx 0 0 0 0;...
-mx lx 0 0 0 0;...
0 0 1 0 0 0;...
0 0 0 lx mx 0;...
0 0 0 -mx lx 0;...
0 0 0 0 0 1];
nut1=pt(i,2:3);
btd=zeros(6,1);
btd([1 4])=nut1*3-2;
btd([2 5])=nut1*3-1;
btd([3 6])=nut1*3;
cvl=T*cv(btd);
 
Ðề: Matlab toàn tập

hàm lắp ghép

function [K,F]=lap_ghep(i,nut,pt,E,A,I,qs,qt,K,F,lucpb)
x1=nut(pt(i,2),2);x2=nut(pt(i,3),2);
y1=nut(pt(i,2),3);y2=nut(pt(i,3),3);
L=sqrt((x2-x1)^2+(y2-y1)^2);
lx=(x2-x1)/L;mx=(y2-y1)/L;
T=[lx mx 0 0 0 0;-mx lx 0 0 0 0;0 0 1 0 0 0;0 0 0 lx mx 0;...
0 0 0 -mx lx 0;0 0 0 0 0 1];
E=pt(i,5);A=pt(i,4);I=pt(i,6);
kl=[E*A/L 0 0 -E*A/L 0 0;...
0 12*E*I/L^3 6*E*I/L^2 0 -12*E*I/L^3 6*E*I/L^2;...
0 6*E*I/L^2 4*E*I/L 0 -6*E*I/L^2 2*E*I/L;...
-E*A/L 0 0 E*A/L 0 0;...
0 -12*E*I/L^3 -6*E*I/L^2 0 12*E*I/L^3 -6*E*I/L^2;...
0 6*E*I/L^2 2*E*I/L 0 -6*E*I/L^2 4*E*I/L];
k=T'*kl*T;
nut1=pt(i,2:3);
btd=zeros(6,1);
btd([1 4])=3*nut1-2;
btd([2 5])=3*nut1-1;
btd([3 6])=3*nut1;
f=L/2*[lucpb(i,2);lucpb(i,3);lucpb(i,3)*L/6;lucpb(i,2);lucpb(i,3);-lucpb(i,3)*L/6];
K(btd,btd)=K(btd,btd)+k;
F(btd)=F(btd)+f;
 
Ðề: Matlab toàn tập

hàm quay
function xy=quay(xy,phi,xyc);
xy(1,:)=xy(1,:)-xyc(1);
xy(2,:)=xy(2,:)-xyc(2);
T=[cos(phi) sin(phi);-sin(phi) cos(phi)];
xy=T*xy;
xy(1,:)=xy(1,:)+xyc(1);
xy(2,:)=xy(2,:)+xyc(2);
 
Ðề: Matlab toàn tập

hàm vẽ biểu đồ
function ve_bieu_do(f,x,x1,x2,y1,y2,L)
tl=max(abs(f))/(0.2*L);f=f/tl;
phi=acos((x2-x1)/L);
xy=quay([x;f],phi,[0 0]);
xy(1,:)=xy(1,:)+x1;
xy(2,:)=xy(2,:)+y1;
y=zeros(size(x));
xyo=quay([x;y],phi,[0 0]);
xyo(1,:)=xyo(1,:)+x1;
xyo(2,:)=xyo(2,:)+y1;
hold on
grid on
for i=1:length(xy)
plot([xyo(1,i) xy(1,i)],[xyo(2,i) xy(2,i)],'r');
plot(xy(1,:),xy(2,:),'r','linewidth',1);
end
hold on
plot([x1 x2],[y1 y2],'linewidth',3)
 
Ðề: Matlab toàn tập

chương trình chính

clear all; clc; close all;
L=100; P1=100; P2=200; M=2000;q=100;
b=4; h=10; I=b*h^3/12; E=1.e+5;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nut=[1 0;2 L;3 2*L;4 3*L];
pt=[1 1 2 E I;2 2 3 E I;3 3 4 E I];
luc=[1 -q*L/2;2 -q*L^2/12;3 -P1-q*L/2;4 q*L^2/12;5 -P2;8 -M];
lucpb=[1 -q;2 0;3 0];
dk=[1 0;7 0];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
K=zeros(size(nut,1)*2);
F=zeros(size(nut,1)*2,1);
F(luc:),1))=luc:),2);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for i=1:size(pt,1)
x1=nut(pt(i,2),2);
x2=nut(pt(i,3),2);
l=x2-x1;
k=pt(i,4)*pt(i,5)/l^3*[12 6*l -12 6*l;6*l 4*l^2 -6*l 2*l^2;-12 -6*l 12 -6*l;6*l 2*l^2 -6*l 4*l^2];
nut1=pt(i,2:3);
btd=zeros(4,1);
btd([1 3])=nut1*2-1;
btd([2 4])=nut1*2;
K(btd,btd)=K(btd,btd)+k;
f=lucpb(i,2)*l/2*[1 l/6 1 -l/6]';
F(btd)=F(btd)+f;
end
btd=[1:size(nut,1)*2]';
btd(dk:),1))=[];
u=(F(btd)-K(btd,dk:),1))*dk:),2))'/K(btd,btd);
cv=zeros(size(nut,1)*2,1);
cv(dk:),1))=dk:),2);
cv(btd)=u;
PL=K*cv-F;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ve chuyen vi
subplot(3,1,1)
grid on
hold on
for i=1:size(pt,1)
x1=nut(pt(i,2),2);
x2=nut(pt(i,3),2);
l=x2-x1;
nut1=pt(i,2:3);
btd=zeros(4,1);
btd([1 3])=nut1*2-1;
btd([2 4])=nut1*2;
s=[x1:(x2-x1)/100:x2]-x1;
for j=1:size(s,2)
x=s(j);
N1=2*x^3/l^3-3*x^2/l^2+1;
N2=x^3/l^2-2*x^2/l+x;
N3=3*x^2/l^2-2*x^3/l^3;
N4=x^3/l^2-x^2/l;
v(i,j)=[N1 N2 N3 N4]*cv(btd);
v(i,j)=v(i,j)+lucpb(i,2)*(l-x)^2*x^2/(24*pt(i,4)*pt(i,5));
end
plot(s+x1,v(i,:));
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% ve luc cat
subplot(3,1,2)
grid on
hold on
for i=1:size(pt,1)
x1=nut(pt(i,2),2);
x2=nut(pt(i,3),2);
l=x2-x1;
nut1=pt(i,2:3);
btd=zeros(4,1);
btd([1 3])=nut1*2-1;
btd([2 4])=nut1*2;
s=[x1:(x2-x1)/100:x2]-x1;
for j=1:size(s,2)
x=s(j);
N1=12/l^3;
N2=6/l^2;
N3=-12/l^3;
N4=6/l^2;
N(i,j)=pt(i,4)*pt(i,5)*[N1 N2 N3 N4]*cv(btd);
N(i,j)=N(i,j)-lucpb(i,2)*(l-2*x)/2;
end
stem(s+x1,N(i,:),'filled','r.')
plot(s+x1,N(i,:),'b','linewidth',2);
plot([x1 x1],[0 N(i,1)],'linewidth',3)
plot([x2 x2],[0 N(i,end)],'linewidth',3)
end
plot([0 3*L],[0 0],'linewidth',2)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% ve moment
subplot(3,1,3)
hold on
grid on
for i=1:size(pt,1)
x1=nut(pt(i,2),2);
x2=nut(pt(i,3),2);
l=x2-x1;
nut1=pt(i,2:3);
btd=zeros(4,1);
btd([1 3])=nut1*2-1;
btd([2 4])=nut1*2;
s=[x1:(x2-x1)/100:x2]-x1;
for j=1:size(s,2)
x=s(j);
N1=12*x/l^3-6/l^2;
N2=6*x/l^2-4/l;
N3=6/l^2-12*x/l^3;
N4=6*x/l^2-2/l;
M(i,j)=pt(i,4)*pt(i,5)*[N1 N2 N3 N4]*cv(btd);
M(i,j)=M(i,j)+lucpb(i,2)*(l^2-6*x*l+6*x^2)/12;
end
stem(s+x1,-M(i,:),'filled','r.')
plot(s+x1,-M(i,:),'b','linewidth',2);
plot([x1 x1],[0 -M(i,1)],'linewidth',3)
plot([x2 x2],[0 -M(i,end)],'linewidth',3)
end
plot([0 3*L],[0 0],'linewidth',2)
 
Top