Hi All,
I have a 3-dimensional data set
It is a N x N x N matrix
In other words cells are X(i,j,k) for i,j,k =N
--------------
Here is my problem:
I want to create a table to represent this data. Since it is 3-dim, I
need a 2-dim matrix.
-------------
Question:
I want to make a matrix/ table for each (i,j) pair versus k
So it is going to be a 2-dim N*N x N matrix.
-----------------------------------------------
EXAMPLE: for N=2
I have this
i j k
X(1,1,1)=a
X(1,1,2)=b
X(1,2,1)=c
X(1,2,2)=d
X(2,1,1)=e
X(2,1,2)=f
X(2,2,1)=g
X(2,2,2)=k
But I need this
(i,j) k
Y((1,1),1)=a
Y((1,1),2)=b
Y((1,2),1)=c
Y((1,2),2)=d
Y((2,1),1)=e
Y((2,1),2)=f
Y((2,2),1)=g
Y((2,2),2)=k
Actually I need this
k= 1 2
(i,j)
(1,1) a b
(1,2) c d
(2,1) e f
(2,2) g k
And I have no idea about how to do this. And my N is 65 :-(
Thanks in advance. 1 1429
a 3-dimension array may fulfill that using the k as the first
dimension.
or
create a struct type like this
struct 3d{
ElemType ij[N][N]
} k[N] po************@gmail.com wrote:
Hi All,
I have a 3-dimensional data set
It is a N x N x N matrix
In other words cells are X(i,j,k) for i,j,k =N
--------------
Here is my problem:
I want to create a table to represent this data. Since it is 3-dim, I
need a 2-dim matrix.
-------------
Question:
I want to make a matrix/ table for each (i,j) pair versus k
So it is going to be a 2-dim N*N x N matrix.
-----------------------------------------------
EXAMPLE: for N=2
I have this
i j k
X(1,1,1)=a
X(1,1,2)=b
X(1,2,1)=c
X(1,2,2)=d
X(2,1,1)=e
X(2,1,2)=f
X(2,2,1)=g
X(2,2,2)=k
But I need this
(i,j) k
Y((1,1),1)=a
Y((1,1),2)=b
Y((1,2),1)=c
Y((1,2),2)=d
Y((2,1),1)=e
Y((2,1),2)=f
Y((2,2),1)=g
Y((2,2),2)=k
Actually I need this
k= 1 2
(i,j)
(1,1) a b
(1,2) c d
(2,1) e f
(2,2) g k
And I have no idea about how to do this. And my N is 65 :-(
Thanks in advance.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robert Blaha |
last post by:
Hi,
I'm runnig Linux/Mandrake9.0-Dolphin and try to update Apache 2.0.46
and PHP 4.3.2.
Apache is OK bu with PHP I've problem. I unpacked distribution, run
../configure > configure.vysl, make...
|
by: pptran |
last post by:
Hi,
I am pretty new to building and installing Perl. Can someone help
explain the severity of the following Perl 5.8.4 build error message?
==================================================...
|
by: Glenn |
last post by:
Hi,
I'm using cygwin and am trying to install DBI-mSQL and am getting errors
on make .. any idea how to fix this (TIA):
cpan> install DBD::mSQL
Running install for module DBD::mSQL
Running...
|
by: Joel Rodrigues |
last post by:
Hi, I get the following error when I run make on Mac OS X v 10.1.5 Any
ideas ?
----------------------------------------------------------
ar: illegal option -- s
usage: ar -d archive file ......
|
by: CSN |
last post by:
I looked through the docs and contrib, but didn't see
anything related to storing and using latitude and
longitude values. I have data in the form of 12° 34'
N, 12° 34' W.
Would any of the...
|
by: Seeker |
last post by:
Hello,
In using Solaris Pro Compiler to compile Pro*C code. I am getting this
error:
make: Fatal error in reader: parser_proc_online.mk, line 26: Badly
formed macro assignment
Based on other...
|
by: Steven Bethard |
last post by:
Ok, I finally have a PEP number. Here's the most updated version of the
"make" statement PEP. I'll be posting it shortly to python-dev.
Thanks again for the previous discussion and suggestions!...
|
by: Steven Bethard |
last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The
patch is available at:
http://bugs.python.org/1472459
and I've pasted the full text below.
I've tried to be more explicit about...
|
by: Yi |
last post by:
I want to make a simple javascript widget, something looks like the
Google AdWords, that people can just post a small section of code on
their web page and display some content from my website.
...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| | |