How to parse different dimensions of output data vectors using lsqcurvefit?

조회 수: 3 (최근 30일)
Vipultomar
Vipultomar 2017년 2월 8일
댓글: Vipultomar 2017년 2월 8일
Hi. I am trying to use lsqcurvefit function, where for each xdata point there are ydata (vector of output data points). I have many experimental output vectors (ydata1, ydata2 etc.. each ydata1 etc are output vectors) which all have different dimensions but share same set of parameters (to be optimized). Problem is I am not able to keep all these ydata(i) in a common matrix (due to different dimensions and so they cannot be concatenated). How should I proceed with this? Thanks

답변 (1개)

KSSV
KSSV 2017년 2월 8일
Read about cells
k = cell(3,1) ;
k{1} = rand(10,1) ;
k{2} = rand(100,1) ;
k{3} = rand(5,1) ;
  댓글 수: 2
Vipultomar
Vipultomar 2017년 2월 8일
Okay. Thanks. I'm reading into that.
Vipultomar
Vipultomar 2017년 2월 8일
Okay. Now I have my ydata experimental as well as from the output of the function and all of the individual data sets although have different dimensions are kept in individual cells. Now do I give the entire cell for y as it is for input into lsqcurvefit?

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

카테고리

Help CenterFile Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by