Effacer les filtres
Effacer les filtres

How can I use my own transfer function

2 vues (au cours des 30 derniers jours)
Nn Sagita
Nn Sagita le 24 Août 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 commentaires
Chandrasekhar
Chandrasekhar le 25 Août 2013
Do you want to write a simple function or a transfer function?
Nn Sagita
Nn Sagita le 27 Août 2013
Modifié(e) : Nn Sagita le 27 Août 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?

Connectez-vous pour commenter.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by