Showing posts with label convert. Show all posts
Showing posts with label convert. Show all posts

Friday, 5 February 2016

How to Calculate Network ThroughputIn Feburary 2016 05,

In Feburary 2016 05,
Convert the TCP window size from bytes to bits: 64 KB is the default TCP window size for computers running the Windows operating system. To convert the window size to bits, multiply the number of bytes by eight. 64 KB x 8 = 524,288 bits.
Divide the TCP window size in bits by the network path latency. For this example, use a latency of 60 milliseconds. 524,288 bits / .060 seconds = 8,738,133 bits per second.
Convert the result from step 2 to megabits per second by dividing the result by 1,000,000. In this example, the maximum throughput is 8.738 Mbps maximum network throughput with the main limitation on the network throughput being the high latency of the network connection.
In Feburary 2016 05,

Thursday, 4 February 2016

How to Convert 3D Data to 2D Using MATLABIn Feburary 2016 04,

In Feburary 2016 04,
Import your data or create a test array. The following code creates a three-dimensional array of zeros in the form of repeated recordings from eight data channels. Each recording is 100 timepoints long and repeated 10 times.myData = zeros(100,10,8);
Convert the dimensionality of the array using the reshape function. To combine the 10 trials for each channel in the above example, use the following code:myNewData = reshape(myData,100*10,8);This function would return a 1,000-by-eight array with the first two dimensions combined.
Remove singleton dimensions using the squeeze function. Although this is not always necessary, after manipulating your data you may be left with a dimension of length one, called a singleton dimension. The following code would remove singleton dimensions from an array.betterArray = squeeze(arrayWithSingletons);
Analyze your data further as appropriate.
In Feburary 2016 04,

Wednesday, 3 February 2016

How to Convert SQLite to TextIn Feburary 2016 03,

In Feburary 2016 03,
Load a SQLite database and enter the sqlite3 environment by typing the following text at the command prompt:$ sqlite3 mydb.dbReplace 'mydb.db' with the name of your database. A database with the specified name will be created if none already exists.
Convert a value to the TEXT data type with the 'CAST' expression by typing the following command at the command prompt:$ sqlite3 my_db.db INSERT INTO my_table VALUES(CAST(97 AS TEXT))Replace 'my_table' with the name of your table. In the code, the number 97 is inserted into the table as a TEXT value.
Exit the sqlite3 environment by typing '.quit', '.q' or '.exit.' and pressing the 'Enter' key.
In Feburary 2016 03,