Can Any one help me, how to import this function in matlab?

1 view (last 30 days)

Accepted Answer

Adam Danz
Adam Danz on 26 Nov 2021
This uses a vector of inputs.
f = @(x)(prod([x(1),x(2),x(3),x(5),x(3)-1])+x(4)) ./ (1 + x(2)^2 + x(3)^3);
k = 5; % demo value
y = 1:5; % demo value
u = 1:5; % demo value
y(k+1) = f([y(k), y(k-1), y(k-2), u(k), u(k-1)])
y = 1×6
1.0000 2.0000 3.0000 4.0000 5.0000 11.0227
  1 Comment
Jabbar moosavi
Jabbar moosavi on 26 Nov 2021
Thanks,
I'm about to use RBF (Radial Basis Function Network) to simulte this
net = newrb(....);

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!