Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:20:20+00:00 2026-06-10T15:20:20+00:00

Here my original matrix. A = 60 27 45 72 22 14 56 2

  • 0

Here my original matrix.

A =

    60    27    45    72    22    14    56     2     8    39    18    12;
    72    27    60    45    11     7     3    23    41    17    56    39]

Then, I want to change position value of column 1 until 4 in second row in order that the same value can be arranged in same column.
Here, My desire matrix.

Res =

    60    27    45    72    22    14    56     2     8    39    18    12;
    60    27    45    72    11     7     3    23    41    17    56    39]

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:20:21+00:00Added an answer on June 10, 2026 at 3:20 pm

    Try to post code where you show examples of what you’ve tried, but I’ll point you in the right direction.

    You need to first make a direct copy of A in Res, then you can modify this copy so that your slaveRow (the row you want to be overwritten) matches your masterRow (the row you refer to when overwriting the slaveRow). Like this:

    A =
    
    60    27    45    72    22    14    56     2     8    39    18    12
    72    27    60    45    11     7     3    23    41    17    56    39
    
    columnStart=1;
    columnEnd=4;
    masterRow=1;
    slaveRow=2;
    Res=A;
    Res(slaveRow,columnStart:columnEnd)=A(masterRow,columnStart:columnEnd);
    
    Res =
    
    60    27    45    72    22    14    56     2     8    39    18    12
    60    27    45    72    11     7     3    23    41    17    56    39
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my original function. it works perfectly, I just want to compress it
Let's say I have some original text: here is some text that has a
I want to find the maximum values and indices by row of a matrix.
Here is original Query :, it generates o/p with two columns name (label, count)
Refer original post here for a reference to the original issue. What plugin should
here is the original code: public static int getInt () { Scanner in =
Ok, here was my original question; Table one contains ID|Name 1 Mary 2 John
This question is sort of a follow-up to my original question here . Let's
I'm using a recipe from the iOS Recipes PragProg book, here's the original portion
I'm porting a C# Library to Java (for nonlinear regression, original code here ).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.