Dimensions of an array define its size and shape -- the arangement of elements in the array. Use this Tag for questions regarding the shape of arrays.
Questions tagged [dimensions]
1238 questions
-3
votes
1 answer
Find closest dimensions (length, width, height) in excel
So, there are different plastic cases: model and inner dimensions (Length x Width x Height). I need find the closest option based on:
inner dimensions which are put in G3:I3 -> the cell J3 should display the closest model
the model of case which…

GabrielOne
- 13
- 3
-3
votes
3 answers
How to calculate dimensions of a 2d array?
I am looking for the dimensions of a 2d array. Not the fixed values assigned to the array, but the values containing integers. Example:
int a[][] = new int[4][5];
a[1][1] = 1;
a[1][2] = 2;
a[1][3] = -2;
a[1][4] = 0;
a[2][1] = -3;
a[2][2] =…

Tyler
- 7
- 4
-3
votes
1 answer
Processing an image-matrix with K-Means in SKLearn
I want to classify my images with SKLearn.
Using python, I read an image from the disk and "remove" the background via adaptive thresholding. Also, I calculate the mean color from the object (without background) and the standard deviation between…

Rufrage
- 306
- 2
- 12
-3
votes
2 answers
how can I represent 4 dimensional data in 3 dimensions(RGB) or 2 dimensions(XY grid)
I want to represent 4 dimensional data in RGB colors so that when clustering is done similar nodes have similar colors or by position on an XY grid. how can this be done?

iteratorr
- 149
- 1
- 8
-3
votes
1 answer
What dimensions to use for a fact table Incident"
I want to build a fact table that hold information about incidents.
The dimensions I suggested:
Time_Dimension : ID_Time, Year, Month, Day
Location_Dimension : ( City for exemple) :ID_City, name
But what i don't get is, the datamart is supposed…

Safaa Jebari
- 1
- 2
-3
votes
1 answer
reshape in MATLAB
If we come to the following line of code in MATLAB:
reshape(dataSet{i},1, 200*200);
Here, dataset{j} seems to be an element in a cell array. Is that right? Since we are using reshape, can we say that that element is an array?
When we use reshape,…

Simplicity
- 47,404
- 98
- 256
- 385
-4
votes
1 answer
Python two dimensional list
How do I create a two dimensional list so that when I input two values a, b (separeted by a comma) until I enter a empty row so that the list looks like this [[a, b], [c, d], [e, f]] with float values?
Edit:
My desired input would be for…

monkey D
- 1
- 3
-4
votes
1 answer
How to create a two dimensional array and add values to it?
I was trying out Project Euler Problem 10.
The problem asks you to multiply all adjacent numbers which are horizontally, vertically, or diagonally connected. Here is a link to the problem.
Basically, how would you create a two-dimensional array…

smid_the_best
- 95
- 9