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 8119023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:40:41+00:00 2026-06-06T04:40:41+00:00

I have a 40×16 matrix or 8 5×16 one below the other i.e. aligned

  • 0

I have a 40×16 matrix or 8 5×16 one below the other i.e. aligned vertically.
I want to get a 5×128 matrix from that such that I align the 8 5×16 matrices horizontally.
is there an efficient/quicker (rather than the hardcoded for loops) way to do this?

I want the individual 5×16 matrices intact.

  • 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-06T04:40:43+00:00Added an answer on June 6, 2026 at 4:40 am

    This should work. Suppose your matrix is A (40×16).

    Here’s a way using reshape:

    m = 5; n = 8; p = 16;
    B = reshape(permute(reshape(A', p, m, n), [2 1 3]), m, n*p);
    

    B will have your eight 5×16 matrices next to each other, intact.

    And here’s a way without reshape:

    m = 5; n = 8;
    B = cell2mat(arrayfun(@(i) A(m*(i-1)+1:m*i, :), 1:n, 'UniformOutput', false));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a video on a webpage that works in all browsers other than
I have tried this multiple distinct from MySQL and I cant seem to get
I have a UITableView that is being populated from an NSMutable array that has
I have an POST AJAX command that returns the following: `email{admin@stackoverflow.com} cid{215}` What I
Have dict like: mydict= {'a':[],'b':[],'c':[],'d':[]} list like: log = [['a',917],['b', 312],['c',303],['d',212],['a',215],['b',212].['c',213],['d',202]] How do i
Have deployed numerous report parts which reference the same view however one of them
I have another one problem with pop3. Here is connection to pop3-server: $pop3Server =
I have some data that needs to be validated, and while I have found
I have a gridview inside UpdatePanel. One of the column in gridview is link
I have a 63row x 7column matrix. xmax=63; ymax=7; for i=1:xmax for j=1:ymax n=(i-1)*ymax+j;

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.