代码搜索结果
找到约 12,326 项符合
M 的代码
repeat.m
function d=repeat(varargin)
if (nargin == 0)
d=menu('Hellow Again','If You Want To Calculate Something More Click Here','If You want To Exit From This Sub Menu Click Here')
if (d == 1)
rc.m
function q=rc(varargin)
%This programme solves various formulaes for diode connected to rl load
%This function also offers graph for the function selected
%This function runs independently as well
test.m
fprintf('\nProvide The Following Data : ')
Vm=input('\nEnter The Peak Voltage(Volt) :');
a=input('\nEnter The Phase Angle(Degrees) :');
Vm=input('\nEnter The Peak Voltage(
sprec.m
%This programme solves various formulaes for single phase half wave rectifier
%This function runs independently as well as with "power_electronics"
%In order to execute this function type ''sprec''
controller1.m
function b=controller1(varargin)
fprintf('Welcome From Worldhitter')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf('Provide The Following Data')
Vs=input('\nEnter The Value Seconda
graphics1.m
function t=graphics1(varargin)
%This function is designed to reduce the load on the programme (to avoid repitition)
%This programme runs with and without "ac_controller.m"
if (nargin == 0)
D
rectifier.m
%This is a functions which offers solution to half wave,full wave,bridge and
%three phase half wave rectifiers
%This programm runs independently as well as with "power_electronics"
function f=rect
fitness.m
function y=fitness(chrom,p,aim)
global P_cross P_mutation
[Popsize len]=size(chrom);
fitness_gene=zeros(Popsize,1);
in_he=zeros(4,1);
out_he=zeros(4,1);
in_out=0;
out_out=0;
% 权值和阈值的分配设置
f
main.m
%仿真《西北师范大学学报》的遗传主程序 %计算的染色体均方误差 fitness=8/sum(error.^2)
% tic
clear
Popsize=40;
P_mutation=0.1;
P_cross=0.6;
real chrom;
real currentbest_value;
m=250; %权值和阈值的初始化范围
chr
select.m
function y=select(fit,N)
P=rand(1,N);
for i=1:N
tem_p=find(fit>=P(i));
s(i)=tem_p(1);
end
y=s;