Anyone have idea of MPT toolbox?

16 views (last 30 days)
baruch
baruch on 9 Aug 2014
Commented: Star Strider on 23 Aug 2014
Is there anyone having idea of MPT toolbox?

Accepted Answer

Star Strider
Star Strider on 9 Aug 2014
  6 Comments
baruch
baruch on 23 Aug 2014
Sir I want to ask question.I have a matrix A=[2 3;5 6] and then I have another matrix A1=[3 4 5;6 7 8;0 0 1].I want to insert my first row of matrix A (i.e [2 3])into third row of matixA1 in such a way that third row becomes[2 3 1].
Star Strider
Star Strider on 23 Aug 2014
I created matrix ‘R’ to leave your original A1 as it was:
A=[2 3;5 6];
A1=[3 4 5;6 7 8;0 0 1];
R = A1;
R(3,1:2) = A(1,:);
produces:
R =
3 4 5
6 7 8
2 3 1
All the sizes of the vectors and references have to match exactly, of course, but otherwise it is a straightforward replacement. Here, I replaced the first two column elements in row 3 of R with the two column elements in row 1 of A.
Apologise for the delay — GMT-6 here.

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 9 Aug 2014
Never heard of it. Is it the Mind Prediction Toolbox ? We're desperately in need of that, so if you have an idea to write one, and it works, I'll buy it. But I guess you don't have that (yet) or you would not even be asking your question in the first place because you would know the answer.

Categories

Find more on Entering Commands in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!