代码搜索结果
找到约 10,000 项符合
5 的代码
ex5_5.m
x=0:pi/100:2*pi;
y1=0.2*exp(-0.5*x).*cos(4*pi*x);
plot(x,y1)
hold on
y2=2*exp(-0.5*x).*cos(pi*x);
plot(x,y2);
hold off
5-5-2.m
%初始化正向权值w和反向权值v
w=rands(18,2)/2+0.5;
v=rands(5,18)/2+0.5;
%输入向量P和目标向量T
P=[0 0;0.5 0.5;0 0.5;1 3;0.5 1;1 0.5];
T=[1 0 0 0 0;1 0 0 0 0;0 1 0 0 0;0 0 1 0 0;0 0 0 1 0;0 0 0 0 1];
T_out=T;
%设定学习步数为1
exm5_5.mdl
Model {
Name "exm2_5"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
exp5_5.mdl
Model {
Name "exp5_5"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
ep5_5.cpp
/* 5.5 编写函数int atoi(char s[ ]),将字符串s转化为整型数返回。注意负数处理方法。*/
#include
using namespace std;
int atoi(char s[]){
int temp=0,f=1,i=0;
while(s[i]!='\0'&&s[i]!='-'&&(s[i]'9')) i++;
ep5_5.dsp
# Microsoft Developer Studio Project File - Name="ep5_5" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Con
ep5_5.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################