Statistics
全部
Content Feed
Problem
Matrix multiplication
Multiply two incoming matrices via matrix multiplication
5年前|0|115 solvers
Problem
Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number
5年前|0|63 solvers
解决了
计算三角形的质心
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...
5 years ago
Problem
Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.
5年前|0|82 solvers
Problem
Check if inputted variable is a string or a number
检查输入变量是数字还是字符串,给定一个字符串输入(即'1'为1,因此一个数字'a'是字符串)。
5年前|0|59 solvers
Problem
向量元素乘法
Take two incoming vectors, and output the element wise multiplication of the vectors.
5年前|2|78 solvers
Problem
Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors
5年前|2|103 solvers
Problem
Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...
5年前|1|46 solvers
Problem
更简单的字符串串联
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...
5年前|0|52 solvers
解决了
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <
5 years ago
解决了
长度的short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
5 years ago
解决了
掷骰子!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
5 years ago
解决了
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
5 years ago
解决了
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
5 years ago
解决了
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...
5 years ago
解决了
搭便车手MATLAB指南
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
5 years ago