ÌâÄ¿£ºÓÃMATLAB¶ÔRC¡¢RLµç·½øÐзÖ
Îö
ÕªÒª£º MATLABÊÇÃÀ¹úMathworks¹«Ë¾¿ª·¢µÄ´óÐÍÈí¼þ°ü£¬ÊÇMATrix LABoratoryµÄËõÂÔÓĿǰ£¬MATLAB¹ã·ºÓ¦ÓÃÓÚÏßÐÔ´úÊý¡¢¸ßµÈÊýѧ¡¢ÎïÀí¡¢µç··ÖÎö¡¢ÐźÅÓëϵͳ¡¢Êý×ÖÐźŴ¦Àí¡¢×Ô¶¯¿ØÖƵÈÖÚ¶àÁìÓò£¬Êǵ±Ç°¹ú¼ÊÉÏ×îÁ÷ÐеĿÆѧÓ빤³Ì¼ÆËãµÄ¹¤¾ßÈí¼þ¡£MATLAB¹¦ÄÜÇ¿´ó²¢ÇÒͬÆäËü¸ß¼¶ÓïÑÔÏà±È¾ßÓÐÓï·¨¹æÔò¼òµ¥¡¢ÈÝÒ×ÕÆÎÕ¡¢µ÷ÊÔ·½±ãµÈÌص㡣 SimulinkÊÇMATLABÈí¼þµÄÀ©Õ¹£¬ËüÊÇʵÏÖ¶¯Ì¬ÏµÍ³½¨Ä£ºÍ·ÂÕæµÄÒ»¸öÈí¼þ°ü¡£MATLAB¾ßÓÐÇ¿´óµÄͼÐδ¦Àí¹¦ÄÜ¡¢·ûºÅÔËË㹦ÄܺÍÊýÖµ¼ÆË㹦ÄÜ¡£ÆäÖÐϵͳµÄ·ÂÕ棨Simulink£©¹¤¾ßÏäÊǴӵײ㿪·¢µÄÒ»¸öÍêÕûµÄ·ÂÕæ»·¾³ºÍͼÐνçÃæ¡£ÔÚÕâ¸ö»·¾³ÖУ¬Óû§¿ÉÒÔÍê³ÉÃæÏò¿òͼϵͳ·ÂÕæµÄÈ«²¿¹ý³Ì£¬²¢ÇÒ¸ü¼ÓÖ±¹ÛºÍ׼ȷµØ´ïµ½·ÂÕæµÄÄ¿±ê¡£±¾´ÎÖ÷Òª½éÉÜ»ùÓÚMATLABµÄÒ»½×¶¯Ì¬µç·ÌØÐÔ·ÖÎö¡£
¹Ø¼ü×Ö£ºMATLAB£»·ÂÕ棻ͼÐδ¦Àí£»Ò»½×¶¯Ì¬µç·¡£
Ò». RC´®Áªµç·
1.1 RC´®Áªµç·µÄÁãÊäÈëÏìÓ¦
¶¯Ì¬µç·ÖÐÎÞÍâÊ©¼¤ÀøµçÔ´£¬½öÓɶ¯Ì¬Ôª¼þ³õʼ´¢ÄÜËù²úÉúµÄÏìÓ¦£¬³ÆΪ¶¯Ì¬µç·µÄÁãÊäÈëÏìÓ¦¡£
ÔÚͼ1ËùʾµÄRCµç·ÖУ¬¿ª¹ØS´òÏò2Ç°£¬µçÈÝC³äµç£¬uR?uC?U¡£µ±¿ª¹ØS´òÏò2ºó£¬µçѹuR?uC£¬µçÈÝ´¢´æµÄÄÜÁ¿½«Í¨¹ýµç×èÒÔÈÈÄܵÄÐÎʽÊͷųöÀ´¡¾2¡¿¡£
ͼ1 RCµç·µÄÁãÊäÈëÏìÓ¦
µç··ÖÎö£ºÓÉͼ¿ÉÖª
1?tUo?RCte i?£¬ uR?uC?UoeRC R22?t?tUoUoRCRCee pR?IR?£¬pC?iuC? RR2221ÔÚMATALABµÄMÎļþ±àдÒÔϳÌÐò:
U0=40;R=10;C=0.5; %ÊäÈë¸ø¶¨²ÎÊý
U1=10;R1=5;C1=0.5; %ÊäÈë¸ø¶¨²ÎÊý t=[0:0.1:10]; %È·¶¨Ê±¼ä·¶Î§
Uc1=U0*exp(-t/(R*C));Uc2=U1*exp(-t/(R*C)); %µçÈݵçѹֵ Ur1=U0*exp(-t/(R*C));Ur2=U1*exp(-t/(R*C)); %µç×èµçѹֵ I1=U0/R*exp(-t/(R*C));I2=U1/R*exp(-t/(R*C)); %¼ÆËãµçÁ÷Öµ
Pc1=U0^2/R*exp(-2*t/(R*C));Pc2=U1^2/R*exp(-2*t/(R*C)); %µçÈݹ¦ÂÊÖµ Pr1=U0^2/R*exp(-2*t/(R*C));Pr2=U1^2/R*exp(-2*t/(R*C)); %µç×蹦ÂÊÖµ figure
subplot(5,1,1);plot(t,Uc1,t,Uc2); title('Uc(t)µÄ²¨ÐÎͼ') subplot(5,1,2);plot(t,Ur1,t,Ur2); title('Ur(t)µÄ²¨ÐÎͼ') subplot(5,1,3);plot(t,I1,t,I2); title('I(t)µÄ²¨ÐÎͼ') subplot(5,1,4);plot(t,Pc1,t,Pc2); title('Pc(t)µÄ²¨ÐÎͼ') subplot(5,1,5);plot(t,Pr1,t,Pr2); title('Pr(t)µÄ²¨ÐÎͼ')
²¨ÐηÂÕæͼ£º
ͼ2 RC´®Áªµç·ÁãÊäÈëÏìÓ¦ÌØÐÔÇúÏß
À¶Ïß±íʾU0=40;R=10;C=0.5Çé¿öϵÄÌØÐÔÇúÏß ÂÌÏß±íʾU1=10;R1=5;C1=0.5Çé¿öϵÄÌØÐÔÇúÏß
1.2 RC´®Áªµç·µÄÖ±Á÷¼¤ÀøµÄÁã״̬ÏìÓ¦
Áã״̬ÏìÓ¦¾ÍÊǵç·ÔÚÁã³õʼ״̬Ï£¨¶¯Ì¬Ôª¼þ³õʼ´¢ÄÜΪÁ㣩ÓÉÍâÊ©¼¤ÀøÒýÆðµÄÏìÓ¦¡£
ÔÚͼ3ËùʾµÄRC´®Áªµç·ÖУ¬¿ª¹ØS±ÕºÏÇ°µç·´¦ÓÚÁã³õʼ״̬£¬¼´
uC(0?)?0¡£ÔÚt=0ʱ¿Ì£¬¿ª¹ØS±ÕºÏ£¬µç·½ÓÈëÖ±Á÷µçѹԴUs¡£¸ù¾ÝKVL£¬ÓÐuR?uC?Us¡£
ͼ3 RCµç·Áã״̬ÏìÓ¦