A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 7 ans il y a

A résolu


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

plus de 7 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

plus de 7 ans il y a

A résolu


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 7 ans il y a

A résolu


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

plus de 7 ans il y a

A résolu


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

plus de 7 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A soumis


MATLAP
Electric powered RC cars simulation

presque 8 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

A soumis


DA GUI
Dijkstra's algorithm graphical user interface

presque 8 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

A soumis


BIN2MAT
Binary to MAT-file converter

presque 8 ans il y a | 7 téléchargements |

5.0 / 5
Thumbnail

Réponse apportée
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...

plus de 8 ans il y a | 0

A soumis


INI
INI file manager - initialization file reading and writing

plus de 8 ans il y a | 2 téléchargements |

5.0 / 5
Thumbnail

A soumis


Cumulative distribution function - Gausso-arithmetic scale
Empirical cumulative distribution function in gausso-arithmetic scale

environ 9 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

A soumis


Delta (GUI)
Uncertainty symbolic and numeric calculator (GUI version)

plus de 9 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A soumis


AVAR
Allan variance calculation GUI

plus de 9 ans il y a | 14 téléchargements |

4.4 / 5
Thumbnail

A soumis


Robotic mapping
Robotic mapping from video shots

plus de 9 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A soumis


PWN2PLY
Converter from PWN format to PLY format

plus de 9 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A soumis


Hierarchical clustering
Hierarchical clustering and dendrogram (WPGMA and UPGMA methods)

presque 10 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

A soumis


Random walk estimator
Estimation of gaussian random walk

presque 10 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

Charger plus