How can I use my own transfer function

1 次查看(过去 30 天)
I'm using Matlab2008. There is file template_transfer.m and rename it : fungsiku.m. I write down my function in this file and put it in my working directory. But, I got the outputs and some messages like this
Exception in thread " AWT-EventQue...."
at javax. swing..
at java.awt
.. and the script didnt stop.
What should I do? Thank you.
  3 个评论
Chandrasekhar
Chandrasekhar 2013-8-25
Do you want to write a simple function or a transfer function?
Nn Sagita
Nn Sagita 2013-8-27
编辑:Nn Sagita 2013-8-27
Thank you for your response. I want to write my own transfer function. Beside i got the output, i got some messages like that. Here is the code of my transfer function (name: fungsiku)
function out1 = fungsiku(in1,in2,in3,in4)
fn = mfilename;
boiler_transfer
function n = name
n = 'fungsiku';
function r = output_range(fp)
r = [-6 +5];
function r = active_input_range(fp)
r = [-10 +10];
function fp = param_defaults
fp = struct;
function names = param_names
names = {};
function err = param_check(fp)
err = '';
function a = apply_transfer(n,fp)
a = 1.32*n + 0.73;
function da_dn = derivative(n,a,fp)
da_dn = 1.32*ones(size(n));
What should I do?

请先登录,再进行评论。

采纳的回答

sri
sri 2013-9-23
I had the same problem. It is because nntraintool. So I disappear nntraintool while training process using below code,
net.trainParam.showWindow=0;
It worked for me.
I think this will help u.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by