What is the optimum way in c sharp to process or parse an 180 by 180 array of double into memory. In a nutshell someone is passing me 180by180 array from Matlab and and I need to parse into memory using c sharp. Do I really need 2-dimensional array to this? Can someone point me in the right direction of process an 180by180 array. This is the code I have below.
MULTIPLIER = (Math.PI * 2);
double azmiuthLength = (MULTIPLIER * azmiuth);
double elevationLength = (MULTIPLIER * elevation);
for (double x = 0; x < Math.PI; x += Math.PI / 180)
{
double xAxis = Math.abs(Math.sin( azmiuthLength * Math.cos(x) / azmiuthLength * Math.cos(x)));
this.antennaPattern.getRadiationArray2D()[xIndex][0] = xAxis;
int yIndex = 0;
for (double y = 0; y < Math.PI; y += Math.PI / 180)
{
double yAxis = Math.abs(Math.sin(elevationLength * Math.cos(y) / elevationLength * Math.cos(y)));
antennaPattern.getRadiationArray2D()[xIndex][yIndex] = yAxis;
yIndex++;
}
xIndex++;
}
David SmithPosted Feb 13, 2019, 1:43 AM
Jefferson S. MottaPosted Feb 12, 2019, 8:25 PM
David SmithPosted Feb 11, 2019, 4:01 PM
Jefferson S. MottaPosted Feb 11, 2019, 2:18 PM
David SmithPosted Feb 11, 2019, 11:44 AM
Jefferson S. MottaPosted Feb 11, 2019, 11:36 AM
David SmithPosted Feb 11, 2019, 11:29 AM
Jefferson S. MottaPosted Feb 11, 2019, 11:22 AM
David SmithPosted Feb 11, 2019, 10:24 AM
Jefferson S. MottaPosted Feb 11, 2019, 10:05 AM
David SmithPosted Feb 9, 2019, 11:41 PM
David SmithPosted Feb 9, 2019, 8:55 AM