⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotoutputs.m

📁 two Matlab functions for initializing and training a recurrent neural network
💻 M
字号:
function plotoutputs(outputs,no,nu,minout,maxout)% plotoutputs(outputs,no,nu,minout,maxout)%minout = 0;%maxout = 0.9;%Remove constant columns (usually just the constant input)%constants = find(var(outputs)==0);%outputs(:,constants)=[];[r,c] = size(outputs);for t=1:r  %scale to be between 0 and 1  onetime = (outputs(t,:) - minout) ./ (maxout - minout) ...      * 1 + 0;  %* 0.8 + 0.1;  x = repmat(t,2,c);  ymid = [1:c]-0.5;  y = [ymid + onetime * .5; ymid - onetime * 0.5];  line(x,y,'LineWidth',2);  hold onendline([0 r]',[no+nu no+nu]','Color','black','LineWidth',2);line([0 r]',[nu nu]','Color','black','LineWidth',2);line([0 r]',[nu-no nu-no]','Color','black');axis offhold off

⌨️ 快捷键说明

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