已解决


Find Even Numbers in Vector
Given a vector x, return the even entries of the vector in the order they appear in x.

3 years 前

已解决


Find the area of a square

3 years 前

已解决


Find the volume of a cube
Given a cube with edge length x, calculated the volume of the cube.

3 years 前

已解决


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

3 years 前

已解决


Implement Euler's formula for calculating polyhedron edges
Your function will take as input the number of faces f and number of vertices v of a polyhedron. It will output the number of ed...

3 years 前

已解决


Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...

3 years 前

已解决


Am I a city or a state
Input will be an array of cities and states. Also, lists of cities and states will be passed. Replace every city name with "cit...

3 years 前

已解决


Solve the logic
logic(1) = -4 logic(2) = -8 logic(3) = -9 logic(4) = 4 logic(5) = 95 logic(6) = 690

3 years 前

已解决


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

3 years 前

已解决


Word with Highest Frequency
Write a MATLAB function that takes in a string and returns the word with the highest frequency in the string. The function shoul...

3 years 前

已解决


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

3 years 前

已解决


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

3 years 前

已解决


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

3 years 前

已解决


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

3 years 前

问题


Find the altitudes of a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coord...

3 years 前 | 2 | 6 个解题者

已解决


2行2列の行列の行列式を求めてみよう
ある2行2列の行列の入力に対して、行列式を出力してください。 例えば、入力が(1,2; 3,4)のとき、出力は1*4-3*2で-2となります。

3 years 前

已解决


ismember: Enhanced Time Performance for 'rows' - Speed Scoring (90% savings)
The Challenge is to perform very fast the 'ismember' function for a long and wide array. The data is small integer representi...

3 years 前

已解决


ismember: Enhanced Performance for 'rows' and width - Speed Scoring (66% savings)
The Challenge is to perform very fast the 'ismember' function for a long and wide array. The width of the array is expanded fro...

3 years 前

已解决


Unique: Enhanced Performance - Large and Wide Array - Speed Improvement (66% savings)
The Challenge is to perform very fast unique function for a long and wide array. The data is small integer representing data ...

3 years 前

已解决


Unique: Enhanced Performance - Avoiding Memory Crash
The Challenge is to create the unique array for a long and wide array. Difficulties are that the normal unique(a,'rows') func...

3 years 前

已解决


Is 3D point set Co-Planar?
This Challenge is to determine if four 3D integer points are co-planar. Given a 4x3 matrix representing four x,y,z integer poin...

3 years 前

已解决


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

3 years 前

已解决


Calculate the sum of first x natural numbers
Calculate the sum of first x natural numbers for example if n=10 output =1+2+..+10=55

3 years 前

已解决


Seperate array to small section according to its index position
Given a integer n, we can generate a sequence [0,1,2,3,4,..., 2^n-1], then we separate it to two sequence according to their ind...

3 years 前

已解决


Sort Reversal
There are n index cards in a row, with n distinct integers written on them (one number per card) so that the numbers are sorted ...

3 years 前

问题


Compute the Sisyphus sequence
A recent article in the New York Times featured the Online Encyclopedia of Integer Sequences, founded by Neil J.A. Sloane. One o...

3 years 前 | 0 | 7 个解题者

已解决


Pattern find
FInd the pattern x = 3; \y=1558 x = 10; \y= 2657548

3 years 前

已解决


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

3 years 前

已解决


Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

3 years 前

已解决


Finding valleys
You have a vector of altitudes (units are arbitrary) and need to find the depths of all the valleys. You also need to determine ...

3 years 前

加载更多