Azzera filtri
Azzera filtri

How can I use my own transfer function

2 visualizzazioni (ultimi 30 giorni)
Nn Sagita
Nn Sagita il 24 Ago 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 Commenti
Chandrasekhar
Chandrasekhar il 25 Ago 2013
Do you want to write a simple function or a transfer function?
Nn Sagita
Nn Sagita il 27 Ago 2013
Modificato: Nn Sagita il 27 Ago 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?

Accedi per commentare.

Risposta accettata

sri
sri il 23 Set 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.

Più risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by