How to make residuals and X & Y data dimension equal?

I am doing a polynomial curve fitting and I have x & y dimension are 1x20 but the residuals plot dimension i was getting is of 20x1....So i am not able to plot the residual plot in command line after saving ow to my fit. Plz tell how to make dim equal so that i can plot residuals?

 채택된 답변

Mischa Kim
Mischa Kim 2014년 1월 31일

0 개 추천

Would just taking the transpose work? When a vec is nx1, then vec' is the equivalent 1xn vector.

댓글 수: 1

Can u tell how it can be done in cftool? As residuals are in output block of fittedmodel of workspace...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

질문:

2014년 1월 31일

댓글:

2014년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by