Gene Sanchez
2019년부터 활동
Followers: 0 Following: 0
Feeds
답변 있음
Programatically selecting cells in a uitable
I wanted to select multiple cell, but was unable to find an answer on how to do it. The key is on the last two arguments of the...
Programatically selecting cells in a uitable
I wanted to select multiple cell, but was unable to find an answer on how to do it. The key is on the last two arguments of the...
대략 5년 전 | 1
문제를 풀었습니다
Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...
5년 초과 전
문제를 풀었습니다
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 ...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
Distance of the centroids of the balls
Given *n* balls of radius *r* and the vector *p (nx3)* with all position *(x,y,z)* of the balls, return the symmetric matrix *A ...
5년 초과 전
문제를 풀었습니다
Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...
5년 초과 전
문제를 풀었습니다
Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...
5년 초과 전
문제를 풀었습니다
Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...
5년 초과 전
문제를 풀었습니다
Vectorize the digits of an Integer
Create a vector of length N for an integer of N digits. x = 123045; x_vec = [1 2 3 0 4 5]; I happened upon a trick ...
5년 초과 전
문제를 풀었습니다
Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
5년 초과 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
5년 초과 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
5년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
5년 초과 전