cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Residual plot in Mathcad

SOLVED
ptc-5137806
1-Newbie

Residual plot in Mathcad

Hi.

I have this plot in MATLAB:

Untitled.png

And i have triede to plot the same function in Mathcad:

Untitled.png

The points doesn't match. I think the problem is the xi value in the MATLAB code. How do i make exactly the same plot in Mathcad ?.

(x in Matlab is Y in Mathcad) and (t in MATLAB is X in Mathcad)

1 ACCEPTED SOLUTION

Accepted Solutions

something like this?

View solution in original post

7 REPLIES 7

Hi Osman,

How are defined variables "x", "t", "gamma", "beta" in your MATLAB document?

Maybe more luck if you attach your Mathcad worksheet here and provide the informations VladimirN has asked for. A pdf-document showing the Matlab code could be an option.

The MATLAB code:

Untitled.png

My Mathcad document is also uploadet.

Thanks in advance

something like this?

View solution in original post

Thank you very much. Where was the error ?

I found it now !. Again, than you very much

The Linear regression Graph in the Mathcad document matches exactly with the Linear regression plot in the MATLAB code. The only problem is the residual plot.

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."