MATLAB Answers

How to print Rsdnrm after fitting?

3 views (last 30 days)
Daniel Zhou
Daniel Zhou on 19 Nov 2020
Answered: Star Strider on 19 Nov 2020
I used the following code to fit my experimental data.
[theta,Rsdnrm,Rsd,ExFlg,OptmInfo,Lmda,Jmat]=lsqcurvefit(@kinetics,theta0,t,c);
But I wonder how good the fit is. I'm trying to print this Rsdnrm value. Could anyone help me to display this value?

  0 Comments

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 19 Nov 2020
The ‘Rsdnrm’ output is a scalar double value, and exists in the workspace after lsqcurvefit completes its estimation. Just use fprintf or sprintf to print it.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by