thanks.m

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

M
37
字号
 function t=thanks(varargin)
 %This function is designed to reduce the load on the programme (to avoid repitition)
 %This function present return back option for the ac switch part of acdc.m 
 %This programme runs with "acdc.m"
  if (nargin == 0)
 Data=1:64;Data=(Data'*Data)/64;
 CreateStruct.WindowStyle='replace';
 CreateStruct.Interpreter='tex';
 h=msgbox('Is=Im/sqrt(2)','Equation','custom',Data,flag(64),CreateStruct);
 pause(1)
 closereq
 msgbox('Thanx For Using My Programme ','','custom',Data,cool(64))
 pause(1)
 closereq
  %************************************************************************
 elseif (nargin ==1)
 Data=1:64;Data=(Data'*Data)/64;
 CreateStruct.WindowStyle='replace';
 CreateStruct.Interpreter='tex';
 h=msgbox('Is=Im/pi','Equation','custom',Data,flag(64),CreateStruct);
 pause(1)
 closereq
 msgbox('Thanx For Using My Programme ','','custom',Data,hsv(64))
 pause(1)
 closereq
  %*********************************************************************  
 elseif (nargin ==2)
 Data=1:64;Data=(Data'*Data)/64;
 CreateStruct.WindowStyle='replace';
 CreateStruct.Interpreter='tex';
 h=msgbox('Irms=Im/2','Equation','custom',Data,flag(64),CreateStruct);
 pause(1)
 closereq
 msgbox('Thanx For Using My Programme ','','custom',Data,hot(64))
 pause(1)
 closereq
 end

⌨️ 快捷键说明

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