Cloudlets, Fog computing

Submitted

A Variational Inequality Approach to Compute Generalized Nash Equilibrium

A Variational Inequality Approach to Compute Generalized Nash Equilibrium

1 year ago | 1 download |

Question

Plot solution region of a system of linear equation

Hi I am trying to find a suitable plot for the generic system of linear equation as follows. y = A+B*x; x = P+Q*y; ...

2 years ago | 0 answers | 0

Submitted

Poisson-point distributed Urban, Suburban and Rural population generation

Poisson-point distribution is used to generate Urban, Suburban and Rural population distribution.

2 years ago | 2 downloads |

Solved

Create a row array using double colon operator

Create a row array from 9 to 1, using the double colon operator.

3 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

3 years ago

Submitted

Erbium doped Fiber Amplifiber (EDFA) model

Simulation of analytical model of Erbium doped Fiber Amplifiber (EDFA)

5 years ago | 10 downloads |

Submitted

Reflective Semiconductor Optical Amplifier (RSOA) Model

Simulation of analytical model of Reflective Semiconductor Optical Amplifier (RSOA) Model

5 years ago | 2 downloads |

Submitted

Comparison of Alamouti & MRC Schemes over Rayleigh Channel

This code gives a relative comparison of performance of Alamouti & MRC schemes over Rayleigh channel

6 years ago | 8 downloads |

Submitted

BER of M-QAM over Rayleigh channel

This program gives simulated results of BER over Rayleigh fading channel.

6 years ago | 16 downloads |

Solved

What's Your BMI?

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

7 years ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

7 years ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

7 years ago

Solved

Count photos

Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

7 years ago

Solved

Multiply a column by a row

* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

7 years ago

Solved

Back to basics 5 - Clipboard

Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

7 years ago

Solved

Project Euler: Problem 7, Nth prime

By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

7 years ago

Solved

Back to basics 11 - Max Integer

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

7 years ago

Solved

Number of Horns on a unicorn!

Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

7 years ago

Solved

Rotate a Matrix

Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

7 years ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

7 years ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

7 years ago

Problem

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

7 years ago | 4

Solved

Which quadrant?

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

7 years ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix, A, find the largest value. E.g. >> A = 1:9; >> A=reshape(A,[3 1 3]); >> islargest(A) ans = 9

7 years ago

Solved

Arrange vector in ascending order

Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

7 years ago

Solved

Rotate a Matrix by 90 degrees

Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

7 years ago

Solved

Determine Whether an array is empty

Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

7 years ago

Solved

Back to basics 8 - Matrix Diagonals

Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

7 years ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

7 years ago

Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

7 years ago