Can Any one help me, how to import this function in matlab?
1 view (last 30 days)
Show older comments
Jabbar moosavi
on 26 Nov 2021
Commented: Jabbar moosavi
on 26 Nov 2021
Y1=@(yk),y(k-1),y(k-2),u(k),u(k-1));
0 Comments
Accepted Answer
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)])
More Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!