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