Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

13 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

13 years ago

Solved


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

13 years ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

13 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

13 years ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

13 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

13 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

13 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

13 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

13 years ago

Submitted


Multilayer Perceptron Neural Network Model and Backpropagation Algorithm for Simulink
Multilayer Perceptron Neural Network Model and Backpropagation Algorithm for Simulink.

13 years ago | 2 downloads |

4.5 / 5
Thumbnail

Submitted


The matrix implementation of the two-layer Multilayer Perceptron (MLP) neural networks.
The matrix implementation of the two-layer Multilayer Perceptron (MLP) neural networks.

13 years ago | 1 download |

5.0 / 5

Submitted


The Radial Basis Function (RBF) using pseudo-inverse method for Simulink
The Radial Basis Function (RBF) using pseudo-inverse method for Simulink.

13 years ago | 2 downloads |

4.0 / 5
Thumbnail

Submitted


The Radial Basis Function (RBF) with LMS algorithm for Simulink
The Radial Basis Function (RBF) with LMS algorithm for Simulink.

13 years ago | 2 downloads |

3.5 / 5
Thumbnail