help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Create function


From: Rizal suryana
Subject: Create function
Date: Wed, 29 Nov 2017 14:29:47 +0900

Hai All
 I created the function like this. I call the function but  have errors

function f = perm(n,x);
    f = exp(n(1)*tanh((x+n(2))/n(3)))+n(4);
end

c = [1 -5 5 0];
d = 26.578;

aa = perm(c,d)

this is the error message
error: 'n' undefined near line 3 column 13
error: called from
    test-function at line 3 column 7
error: evaluating argument list element number 1
error: called from
    test-function at line 3 column 7

Thank you very much

best regards
rizal

--
LEMBAGA PENERBANGAN DAN ANTARIKSA NASIONAL (LAPAN)
DEPUTY BIDANG SAINS PENGKAJIAN DAN INFORMASI KEDIRGANTARAAN
PUSAT PEMANFAATAN SAINS ANTARIKSA
JL. DR DJUNDJUNAN NO 133 BANDUNG

reply via email to

[Prev in Thread] Current Thread [Next in Thread]