Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Delete and insert row in different matrix
Replies: 5   Last Post: Aug 20, 2013 11:38 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
John Dickson

Posts: 19
Registered: 10/30/11
Re: Delete and insert row in different matrix
Posted: Aug 20, 2013 2:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


A is 50*85 matrix and B is 30*85 matrix. All I need is to delete ith row in matrix A and insert it at the end of B matrix. New matrix will be A =49*85 and B= 31*85.
A and B are two different data sets which doesn't depend on anything. I select the row'i'
using a third matrix which is 30*50. If row i in the third matrix is the max of the minimums ([maxValue, rowIdx] = max(C(1,end),[],1)) then I remove ith row from A and insert it into B. I use the rowIDx to determine the ith row (row that has maxi of the minimum) which will help me to remove from A using A(rowIdx,:)=[]
I hope this information will help to solve my issue.

Thanks



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.