power_electronics.m

来自「Matlab实现无刷直流电机控制系统建模仿真.zip」· M 代码 · 共 32 行

M
32
字号
function m=power_electronics(varargin)
%This is a function which offers answers from varioue formulaes of power electronics (Rasheed)
%after accepting the input from the user
%please be patient to get the results 
%I have designed this function with lot of pauses so  it will take time to give you the 
%results
%How to use this function is very simple 
%Type the name "power_elctronics" on the command prompt then the main menu will come
%This menu will contain the rc load,rl load ,rectifier,convertor,controller and switches headings
%Selet one then do as being prompted
%In case of any objections or suggestions plz email me
Author_Intro=struct('Name','Worldhitter','Rno','2001-MCT-685','Oranization','U.E.T','Email','worldhitter@hotmail.com','Address','44-New Hall Uet Lahore','Mobile','0333-4317942')
%*************************************************************************************************
k=menu('Choose a section ','RC Loads ',' RL Loads','Rectifiers','Converters ',' Ac Controllers','Switches');
type=['RC Loads ',' RL Loads','Rectifiers','Converters ',' Ac Controllers'];
%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
if    (k == 1) 
   rc
   thanks4(1,1,1,1,1,1,1) %Function call
elseif(k == 2)   
   rl_load
   thanks4(1,1,1,1,1,1,1) %Function call
elseif(k == 3)
   rectifier
   thanks4(1,1,1,1,1,1,1) %Function call
elseif(k == 5)
    ac_controller
    thanks4(1,1,1,1,1,1,1) %Function call
elseif(k == 6)
   acdc
   thanks4(1,1,1,1,1,1,1) %Function call
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?