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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:31:50+00:00 2026-05-25T22:31:50+00:00

I have random matrix(A) and I find a result I’d like to use later

  • 0

I have random matrix(A) and I find a result I’d like to use later for my code

A=randint(5,7,[1,9])
ans A =

     8     1     2     2     6     7     7
     9     3     9     4     1     7     1
     2     5     9     9     8     4     3
     9     9     5     8     9     6     1
     6     9     8     9     7     2     1

How can I now get:

A = [8,1,2,2,6,7,7;9,3,9...7,2,1];

without having to type it myself.

  • 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-05-25T22:31:50+00:00Added an answer on May 25, 2026 at 10:31 pm

    Just thought of another way. Your goal is to have A in your script – right?

    You can just paste it as follows:

    A = [
         8     1     2     2     6     7     7
         9     3     9     4     1     7     1
         2     5     9     9     8     4     3
         9     9     5     8     9     6     1
         6     9     8     9     7     2     1 
     ]
    

    (note the square brackets)

    It will evaluate to your original matrix.

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

Sidebar

Related Questions

I have a function that generates normal random number matrix having normal distribution using
I would like to have a random number generated based of a variable called
How can I search for in table_a table_b table_c , which have a random
Hi I have this basic random quote script, but I would like it to
I have the foll0wing code to generate a matrix of 0's and 1's using
I have a random undirected social graph. I want to find a Hamiltonian path
Its a small code to generate a random hermitian matrix hermitian matrix . I
I have an NxN matrix filled with zeros. Now I want to add to
I'd like to multiply a random number vector PT(n)=rand(1,n) by a matrix M(mxn) but
I have a matrix. And I need to get 1D arrays from my matrix.

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.