nlarx is not working at all

11 visualizzazioni (ultimi 30 giorni)
Elodie
Elodie il 28 Mar 2023
Commentato: Star Strider il 11 Mar 2024
Hello,
I have tried to excute the example code named "Estimate Nonlinear ARX Model" for nlarx (Estimate parameters of nonlinear ARX model - MATLAB nlarx - MathWorks France) but the nlarx command is not working. The error message is the following: "too many inputs). I've tried to reduced the size of the data set but it has not worked....
Could you please help me? I don't understand why the example code isn't running correctly....
Thanks,
Elodie

Risposta accettata

Star Strider
Star Strider il 28 Mar 2023
Check to see if you have another function (or something else) with the same name.
To do that, run this:
which nlarx -all
from your Command Window or a script.
The correct result should be something like this:
which nlarx -all
/MATLAB/toolbox/ident/nlident/nlarx.m
If it returns anything else, that will point to the problem.
Meanwhile, that example works here —
load twotankdata;
Ts = 0.2;
z = iddata(y,u,Ts);
sysNL = nlarx(z,[4 4 1])
sysNL = Nonlinear ARX model with 1 output and 1 input Inputs: u1 Outputs: y1 Regressors: Linear regressors in variables y1, u1 Output function: Wavelet network with 11 units Sample time: 0.2 seconds Status: Estimated using NLARX on time domain data "z". Fit to estimation data: 96.84% (prediction focus) FPE: 3.482e-05, MSE: 3.431e-05 More information in model's "Report" property.
sysL = arx(z,[4 4 1]);
figure
compare(z,sysNL,sysL)
.
  4 Commenti
Nikolas Anastasiadis
Nikolas Anastasiadis il 11 Mar 2024
Hi!
I have a similar problem, but nothing seems to have the same name in the workspace.
I tried what you suggested and I still get this:
Any idea for where the problem might be?
Star Strider
Star Strider il 11 Mar 2024
You obviously have the function, and the call looks to me to be correct.
I have no ideas what the problem is, so it would be best for you to Contact Support and include the URL of your Comment here in your note to them.
.
.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Linear Model Identification in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by