Good day, I'm a Matlab beginner
I made the model named Threelevelmodel.m
function [dx, y] = Threelevelmodel(t,x,u,k1,k3,k13,k31,varargin)
dx = [(-k3-k31)*x(1)+k13*x(2); k31*x(1)+(-k1-k13)*x(2)];
And I saved this file,
Then the main code
FileName = 'Threelevelmodel';
Parameters = [0.011; 0.011; 0.09; 0.147];
InitialStates = [5640000000; 42500000];
nlgr = idnlgrey(FileName, Order, Parameters, InitialStates, Ts);
When I tried this code, I got the error like
함수 'idnlgrey'은(는) 'char'형 입력 인수에 대해 정의되지 않았습니다.
It says that the function 'idnlgrey' is not defined for the input argument 'char'
However, no matter how hard I read the matlab description of idnlgrey, the 'Filename' must contain a char variable
How can I solve it? Thank you