Converting the outpur of a fit (e.g. sfit) into a string format, then pasting the text to a Text Area in app desginer
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two problems:
1- I don't know how I can convert the output of a fit, which in my case comes as the class "sfit", into a text format that can then be edited further. Example of the fit:
Linear model Poly11:
CTEta0Fit(x,y) = p00 + p10*x + p01*y
Coefficients (with 95% confidence bounds):
p00 = -1.718 (-1.945, -1.492)
p10 = 18.85 (17.33, 20.38)
p01 = -0.006215 (-0.007869, -0.00456)
2- When I do this, is there a possibility to copy this text into a Text Area in the App Designer? I would like to create something like Log interface where a summary of activities is shown.
0 Kommentare
Antworten (2)
Les Beckham
am 22 Aug. 2023
Verschoben: Matt J
am 22 Aug. 2023
Another option (which does essentially the same thing) is this:
load census;
f = fit(cdate,pop,'poly2');
s = formattedDisplayText(f)
0 Kommentare
Matt J
am 22 Aug. 2023
Bearbeitet: Matt J
am 22 Aug. 2023
I don't know how I can convert the output of a fit, which in my case comes as the class "sfit", into a text format that can then be edited further.
For example,
load census;
f=fit(cdate,pop,'poly2');
s=string(evalc('disp(f)'))
is there a possibility to copy this text into a Text Area in the App Designer?
Of course!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!