Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.7K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Group data from different matrix that share a column?

Posted 6 years ago

Hello everyone.

I have two matrices of size n*2 with the following format: {{x, y},f(x,y)} wich in theory represent the same thing. I want to calculate the mean square error calulating the diference between f1(x,y) and f2(x,y); however, the rows of these two matrices are in different order. Is there a way for me to alter the order of the rows of one of the matrices so that the first column of both, {x, y} becomes the same?

Any advice is welcome. Regards. Jaime.

POSTED BY: Jaime de la Mota
2 Replies

Very good idea. I have tested it and seems to work fine. Thank you very much.

POSTED BY: Jaime de la Mota
Posted 6 years ago

If the {x, y} are identical in the two matrices then why not sort both of them by their first column?

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard