Curve Fitting to Multiple Data Sets

Hello,
I have been searching and searching, and can't find out how to fit a curve to multiple data sets.
I originally had a matrix of information, MRI data with one column per patient. I tried to open that in the curve fitting tool box by importing as a data set, but it would only take vectors. I broke the matrix into individual vectors, imported them as several data sets, and they are all displaying on the plot in the toolbox. However, when I go into 'Fitting', I can only select one data set to fit a curve to. I need a curve to fit all of the data, not each patient individually.
Any ideas how I can accomplish this?
Thank you for any help you can offer!

 채택된 답변

Sean de Wolski
Sean de Wolski 2011년 5월 19일

0 개 추천

Take the mean of the matrix across columns and fit the curve to it.
data = mean(data_matrix,2);
%fit stuff to data.

댓글 수: 2

bym
bym 2011년 5월 19일
you might also want to take the standard deviation and do a weighted fit
Eric Moore
Eric Moore 2011년 5월 20일
Why is this a better solution than just appending the data sets?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2011년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by