Filter löschen
Filter löschen

How can I use my own transfer function

2 Ansichten (letzte 30 Tage)
Nn Sagita
Nn Sagita am 24 Aug. 2013
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 Kommentare
Chandrasekhar
Chandrasekhar am 25 Aug. 2013
Do you want to write a simple function or a transfer function?
Nn Sagita
Nn Sagita am 27 Aug. 2013
Bearbeitet: Nn Sagita am 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?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

sri
sri am 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.

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by