augmenting matrix in MATLAB

18 次查看(过去 30 天)
Patience Shamaki
Patience Shamaki 2019-8-24
评论: David Hill 2019-8-24
Please I am trying to estimate a parameter and I want to augment the orginal state matrix(36001X8) with the parameter by adding two more columns of the parameter(to make it 3600X10) so that I can plot my original and estimates on same graph, how do I go about it?
  1 个评论
David Hill
David Hill 2019-8-24
if the additional parameters are already column vectors (p1 and p2), you should only have to add them onto your orginal matrix.
M(:,9)=p1;
M(:,10)=p2;

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by