Can Any one help me, how to import this function in matlab?
1 次查看(过去 30 天)
显示 更早的评论
Y1=@(yk),y(k-1),y(k-2),u(k),u(k-1));
0 个评论
采纳的回答
Adam Danz
2021-11-26
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)])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!