Community Profile

# Kevin Hellemans

##### Last seen: 21日 前
326 2013 年以降の合計貢献数

#### Kevin Hellemans's バッジ

すべて表示

Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

5ヶ月 前

Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

5ヶ月 前

Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

5ヶ月 前

Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

5ヶ月 前

Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

5ヶ月 前

Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifmq zpv...

5ヶ月 前

intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

5ヶ月 前

We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

5ヶ月 前

Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

5ヶ月 前

How to assign a value against a string from 1st column to other?
Hi, The fastest way would be to create a Matlab variable directly. However, should you want to create a dynamic link to an Exce...

5ヶ月 前 | 0

Game Timer
Board Game Timer

5ヶ月 前 | ダウンロード 4 件 |

Update GUI based on values chosen in a Radio Button Group
Hi, One possibility (might not be the most elegant solution) is to read all radio buttons in a single variable. When you cre...

5ヶ月 前 | 0

check whether an interval instant belongs to an array of intervals
Hi, I would use cellfun to loop through the intervals and check in each cell. The function belows takes the cell array C and ...

5ヶ月 前 | 0

| 採用済み

Assigning values from one array to another if certain specifications are met.
Hi, I think this should do the trick: A= [0 1 2 3 6 8 9 10; ... 0 0 0 0 0 ...

5ヶ月 前 | 1

Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

5ヶ月 前

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

9ヶ月 前

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

10ヶ月 前

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

10ヶ月 前

Create a vector
Create a vector from 0 to n by intervals of 2.

10ヶ月 前

Arduino support package win10 compatibility
Hi, I'm trying to get Matlab and Simulink set up to work with an Arduino. However, when I try to install the support package...

10ヶ月 前 | 0 件の回答 | 0

### 0

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

1年以上 前

Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

1年以上 前

Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

1年以上 前

surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

1年以上 前

Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

1年以上 前

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

5年以上 前

Infrared Image Software (IRIS)
FTIR Image Data Processing

6年弱 前 | ダウンロード 6 件 |

Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

6年弱 前