The modelfun actually works, but I get the warning:
Warning: Some columns of the Jacobian are effectively zero at the solution, indicating that the model is insensitive to some of its parameters. That may be because those parameters are not present in the model, or otherwise do not affect the predicted values. It may also be due to numerical underflow in the model function, which can sometimes be avoided by choosing better initial parameter values, or by rescaling or recentering. Parameter estimates may be unreliable.
You may have an idea how to improve the code?
Thanks in advance.
Best
Liso
ich habe das gerade mal in R2015b laufen lassen und bekomme keine Warnung.
Der R-squared ist allerdings sehr schlecht und der Fit somit quasi unbrauchbar. Das sieht man auch optisch:
Code:
load X
load y
Model = @(b,x)b(1).*((b(2)+x(:,1))./ (b(3)+x(:,2)));
beta0 = [10.51];
mdl = fitnlm(X,Dataexone38,Model,beta0)
s1 = scatter3(X(:,1), X(:,2), Dataexone38);
hold on
s2 = scatter3(X(:,1), X(:,2), predict(mdl, X), 'Marker', 'x');
hold off
Vielen Dank. Dies ist ein Beispiel aus einem grossen Datensatz. Das Resultat spielt im Einzelfall hier keine Rolle. Doch möchte ich gerne verstehen.
Anbei ein weiteres Beispiel, wo die gleiche Warnung auftritt. Ich wäre dankbar, wenn Du das nochmals testen könntest, evtl. war das vorherige Beispiel falsch.
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.