How to parse different dimensions of output data vectors using lsqcurvefit?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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) ;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!