Solved

Determine if input is odd

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

4 years ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

4 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 ...

4 years ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

4 years ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

4 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4 years ago

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...

4 years ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

4 years ago

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

4 years ago

Solved

Find the longest sequence of 1's in a binary sequence.

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

4 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...

4 years ago

Answered

How to convert sinewave(any signal) into 8bit binary in Simulink?

Hello, Sorry for the delayed response. What about an "Embedded MATLAB function" block calling this kind of code (1 input, 8...

How to convert sinewave(any signal) into 8bit binary in Simulink?

Hello, Sorry for the delayed response. What about an "Embedded MATLAB function" block calling this kind of code (1 input, 8...

5 years ago | 0

Submitted

INI

INI file manager - initialization file reading and writing

5 years ago | 9 downloads |

Submitted

Cumulative distribution function - Gausso-arithmetic scale

Empirical cumulative distribution function in gausso-arithmetic scale

6 years ago | 2 downloads |

Submitted

Delta (GUI)

Uncertainty symbolic and numeric calculator (GUI version)

6 years ago | 2 downloads |

Submitted

Hierarchical clustering

Hierarchical clustering and dendrogram (WPGMA and UPGMA methods)

7 years ago | 19 downloads |

Submitted

Availablity Monte-Carlo simulator

Availablity Monte-Carlo simulator for systems including multiples redundant units

7 years ago | 2 downloads |

Submitted

Wien bridge oscillator

Wien bridge oscillator simulation through differential equation solving

7 years ago | 1 download |

Submitted

Keypad press function

Shortcuts and menus to graphical utilities (scale, zoom, translation and initialization)

7 years ago | 2 downloads |

Submitted

Monte-Carlo Simulator

Monte-Carlo simulator for statistical process simulation

7 years ago | 3 downloads |