Multidimensional-arrays can be described as "arrays of arrays". Multidimensional-arrays are often used to put values in a table format (e.g. rows and columns).
1
vote
2answers
15 views
PERL Foreach through Multidimensional Array?
I have a script that takes pathnames/files that are too old (as decided via user input) and deletes them. I want to list each directory separately and ask for confirmation of deleting the old files in ...
-4
votes
1answer
53 views
How to create a object of unlimited dynamic 2D Array in C#
I know how to create an object of 2D "Static size" array in C# using string[,] wordDBArray = new string[5,5] .... but my problem is how to create an object of "Dynamic size" 2D array (i mean without ...
0
votes
3answers
53 views
Simple 2D array throwing exception [closed]
It very strange very why this small code is throwing ArrayIndexOutOfBoundsException
class sum
{
public static void main(String[] arg)
{
int arr[][]=new int[2][3];
arr[0][0]=4;
...
1
vote
4answers
54 views
Manipulate multidimensional array in a function
I read a lot of stuff in here and tried many but i couldn't find a way to pass a multidimensional array to a function in C,change some of the values and somehow return the new array.
It's important to ...
0
votes
2answers
24 views
Matlab : how to get M(1,2) from vector v=[1,2]?
Say I have:
M = [1, 2; 3, 4]
v = [1, 2];
M(v) gives [1 3] but I want to get is M(1, 2) = 3.
Is there a way to do it? Of course, I could do M(v(1), v(2)) but I need the thing to work for M an ...
0
votes
1answer
18 views
unable to intialise and manipulate two dimentional sessionarrays
i actually i want to store users previous searches into sessions as two dimentional arrays
by dividing query into keywords
<?php
session_start();
//weather searched or not
...
0
votes
1answer
29 views
change value of multi-dimensional array
I want to change a value of a multi-dimensional array, but this code keeps telling me
"cannot set property '5' (which is the length of the array I guess) of undefined"
obj.figures = new Array(
new ...
0
votes
2answers
31 views
How to insert data which does not have specific sequence?
My array print_r is :
Array
(
[email] => [email protected]
[attempt] => 0
[timestamp] => 1369676665
[smtp-id] => <[email protected]>
...
0
votes
2answers
46 views
C++ Comparing inner values in a 2D multidimensional array
So I'm busy coding a 3x3 2D tic-tac-toe game, I want to convert it to 3D version soon- something a friend showed me.
Anyway, I have most of the fundamentals down (Player 1, Player 2, inputting ...
3
votes
2answers
71 views
Using a colon for indexing in matrices of unknown dimensions
When indexing matrices in MATLAB, can I specify only the first or last n dimensions, and have all others dimensions "selected automatically"?
For example, I am writing a function which takes in an ...
2
votes
3answers
60 views
C - Array of strings (2D array) and memory allocation gets me unwanted characters
I have a tiny problem with my assignment. The whole program is about tree data structures but I do not have problems with that.
My problem is about some basic stuff: reading strings from user input ...
0
votes
2answers
32 views
Get ID of canvas element when clicked on
I want to get the ID of the canvas i click on, but with the code I wrote, I always get the ID of the last canvas. Is it somehow possible to get the value of the multidimensional-array? Should I put ...
6
votes
2answers
42 views
MATLAB: How do you call a “cross-section” of an m-dimensional array?
In MATLAB, I have a multidimensional array of floats, A, with m dimensions; that is, its entries can be referenced with A(n_1, n_2, ..., n_m).
I don't know if there is a good way to describe this ...
0
votes
2answers
30 views
How to extract one-dimensional array from Two dimensional array in VB.NET
H
I'm using VB.NET, and i have a two dimensional array.
How do I extract a one-dimensional array from it? I.E the 3rd row.
Something like MAT[0] which i would do in java to get the first row from a ...
-3
votes
0answers
8 views
convert an one dimensional array of records to a two dimensional array [closed]
how can I write a subroutine that get an one dimensional array of records and converts it to a two dimensional array. (bye the way records have only three fields)
any ideas?