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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:23:09+00:00 2026-05-25T02:23:09+00:00

I am new to Mathematica. I will try to do my best to write

  • 0

I am new to Mathematica. I will try to do my best to write it effectively.

I have two questions:

Q1:
I have three tables which give me values as {x1,y1,z1} ,{x2,y2,z2}…The code is given below:

    Table[Table[Table[ {xcord, ycord, zcord},  
                       {xcord, 0, 50, 5}],  
                       {ycord, 0, 50,5}],   
                       {zcord, 50, 150, 10}]  

Now I need an output like this

{1,x1,y1,z1}

{2,x2,y2,z2}

{3,x3,y3,z3}

.
.
{n,xn,yn,zn}

There are two problems with this.

First, I get my results formatted as something like this {x1,y1,z1},{x2,y2,z2} …. {xn,yn,zn}, but I want it formatted in this way:

 {x1,y1,z1}

 {x2,y2,z2}

 {x3,y3,z3}

 .
 .
 {xn,yn,zn}

Second, I can’t number each set of elements adding the numbers in front of each set of elements like

{1,x1,y1,z1}

{2,x2,y2,z2}

{3,x3,y3,z3}

.
.
{n,xn,yn,zn}

I tried to make separate tables for each set of co-ordinates and number these corresponding to each set of the co-ordinates. Then I tried to get each of them in separate columns and join them but still I haven’t been successful.

Q2:
I would like to separate the values obtained from the tables above into a grid system like the one below. Something like how we all do in Excel where all values reside in a separate cells.

                 Number          X values  Y Values  Z values
                     1            x1        y1       z1
                     2            x2        y2       z2
                     .
                     .
                     n            xn        yn        zn
  • 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-25T02:23:10+00:00Added an answer on May 25, 2026 at 2:23 am

    Perhaps:

    i = 0; t2 = 
     Grid[Join[{{"Number", "X Values", "Y Values", "Z Values"}}, 
       Flatten[Table[{++i, xcord, ycord, zcord}, 
                                  {xcord, 0, 50, 5}, 
                                  {ycord, 0, 50, 5}, 
                                  {zcord, 50, 150, 10}], 2]], 
     Frame -> All]
    

    enter image description here

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

Sidebar

Related Questions

I have implemented a quadtree in Mathematica. I am new to coding in a
I have imported some data into Mathematica. The data will look similar to {{0,2},{2,3},{4,3},{5,4},{8,4}}
New to both Ruby and Rails but I'm book educated by now (which apparently
in the program I'm working on I have 3-element arrays, which I use as
I'm currently working on a game whereby I will have a player traversing a
I have a very complicated mathematica expression that I'd like to simplify by using
I'm planning to write a program in Ruby to analyse some data which has
I am new to Mathematica and am trying to understand patterns and rules. So
I have a List in C# for my Winforms application: List<string> StudentSubjects = new
I have a very large table in Mathematica ((dimcub-1)^3 elements) coming from an inverse

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.