Statistics
全部
Content Feed
解决了
Replicate elements in vectors
复制行矢量的每个元素(使用NAN)恒定数量。示例n = 2,a = [1 2 3] - > [1 1 2 2 2 3 3] ...
29 days ago
解决了
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...
1个月前
解决了
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
2 months ago
解决了
返回独特的值而无需排序
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The values of B are in the same order a...
2 months ago
解决了
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...
2 months ago
解决了
First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero i...
2 months ago
解决了
打钩。托克。打钩。托克。打钩。托克。打钩。托克。打钩。托克。
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...
3个月前
解决了
Calculate the Levenshtein distance between two strings
此问题描述从http://en.wikipedia.org/wiki/levenshtein_distance提出。两个...之间的Levenshtein距离
3个月前
解决了
Implement a bubble sort technique and output the number of swaps required
气泡排序技术比较相邻的项目,如果它们的顺序错误,则将它们交换。这是递归完成的,直到Al ...
3个月前
解决了
Determine the number of odd integers in a vector
确定向量中唯一的奇数整数的数量。示例:输入X = [2 5 8 3 7 1];输出y = 4;INP ...
3个月前
解决了
Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...
4 months ago
解决了
改变的迹象甚至指数ries of the reversed vector
更改反向矢量示例1 vec = [4 -1 -1 -2 9] ans = [9 2 -1 -4] example2 ...的均匀索引条目的符号。
4 months ago
解决了
Set a diagonal
Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...
4 months ago
解决了
Find the peak 3n+1 sequence value
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...
4 months ago
解决了
It dseon't mettar waht oedrr the lrettes in a wrod are.
2003年的互联网模因(此处阅读更多)声称读者对单词的字母顺序相对不敏感,这么长...
4 months ago
解决了
找到两个字的状态名称
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...
4 months ago
解决了
Get the area codes from a list of phone numbers
给定一串带有电话号码的文本,返回区域代码的独特单元字符串。S ='508-647 ...
4 months ago
Problem
时间反向索引
时间反向索引值如下所示indexin = [7 1 0] indexout = [7 6 0]请注意,索引基于零,因此...
4 months ago | 1|10个求解器
解决了
Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...
5 months ago
解决了
在-L和L之间生成N均等间隔
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...
5 months ago
解决了
Create a vector whose elements depend on the previous element
这个想法是创建一个向量A,其元素取决于上一个元素:*a(i+1)= 2*a(i)+1**2输入*: - a:the ...
6 months ago
解决了
3D数组的最大索引
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...
6 months ago
解决了
Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...
6 months ago
解决了
Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...
7个月前