How can I use my own transfer function

1 view (last 30 days)
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 Comments
Chandrasekhar
Chandrasekhar on 25 Aug 2013
Do you want to write a simple function or a transfer function?
Nn Sagita
Nn Sagita on 27 Aug 2013
Edited: Nn Sagita on 27 Aug 2013
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?

Sign in to comment.

Accepted Answer

sri
sri on 23 Sep 2013
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.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!