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

1 visualizzazione (ultimi 30 giorni)
Y1=@(yk),y(k-1),y(k-2),u(k),u(k-1));

Risposta accettata

Adam Danz
Adam Danz il 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 Commento
Jabbar moosavi
Jabbar moosavi il 26 Nov 2021
Thanks,
I'm about to use RBF (Radial Basis Function Network) to simulte this
net = newrb(....);

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by