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

  • Home
  • SEARCH
  • 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 7886739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:23:44+00:00 2026-06-03T05:23:44+00:00

What is the inverse operation to vec in Octave? E.g. if I need to

  • 0

What is the inverse operation to vec in Octave?

E.g. if I need to convert 12×1 vector into 3×4 matrix, what should I do?

  • 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-03T05:23:45+00:00Added an answer on June 3, 2026 at 5:23 am

    I don’t know Octave, but I think you’re looking for reshape.

    — Built-in Function: reshape (A, m, n, …)
    — Built-in
    Function: reshape (A, [m n …])
    — Built-in Function:
    reshape (A, …, [], …)
    — Built-in Function: reshape (A, size)

    Return a matrix with the specified dimensions (m, n, …) whose elements are taken from the matrix A. The elements of the matrix are accessed in column-major order (like Fortran arrays are stored).

    The following code demonstrates reshaping a 1×4 row vector into a 2×2 square matrix.

          reshape ([1, 2, 3, 4], 2, 2)
               ⇒  1  3
                   2  4
    

    Note that the total number of elements in the original matrix (prod (size (A))) must match the total number of elements in the new matrix (prod ([m n …])).

    A single dimension of the return matrix may be left unspecified and Octave will determine its size automatically. An empty matrix ([]) is used to flag the unspecified dimension.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to convert a Org.BouncyCastle.X509.X509Certificate to System.Security.Cryptography.X509Certificates.X509Certificate2 ? The inverse operation
I need to do an inverse calculation, which consists bitwise AND operation,how do I
Is there any function that does the inverse operation of array_diff() ? I mean,
I am looking at taking the inverse of a large matrix, common size of
Basically, what I need is the inverse of this: SELECT * FROM `table` WHERE
Started learning octave recently. How do I generate a matrix from another matrix by
I'm trying to combine three signal waveforms into a single, interleaved waveform. I need
I have a program that uses JAMA and need to test is a matrix
I am trying to obtain the left inverse of a non-square matrix in python
I would like to find the inverse of a matrix. I know this involves

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.