已解决


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

6 years 前

已解决


Find two triangular numbers whose sum is input.
Find two triangular numbers whose sum is _input_. Note: The difference beetween the triangular numbers should be minimum.

6 years 前

已解决


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

6 years 前

已解决


Sum of digit range
Example: If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return ...

6 years 前

已解决


Find the list of all open files
In the test suite, I use <http://www.mathworks.com/help/matlab/ref/fopen.html fopen> to create new files. The task is to find th...

6 years 前

已解决


Can the given sides form a triangle?
Can the three given sides form a triangle?

6 years 前

已解决


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

6 years 前

已解决


Calculate inverse matrix in m by n matrix
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a*x=y Estimate a using inverse matrix calculation. This is principle of li...

6 years 前

已解决


Raise Matrix to Power
For a given square matrix x and scalar a, find x^a without using '^' or 'mpower'.

6 years 前

已解决


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

6 years 前

已解决


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

6 years 前

已解决


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

6 years 前

已解决


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

6 years 前

已解决


Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?

6 years 前

已解决


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

6 years 前

已解决


wipe out!
make all the elements in given x zero.

6 years 前

已解决


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

6 years 前

已解决


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

6 years 前

已解决


is the number happy?
test is a given integer number is Happy of not? answer 1 if yes or 0 is no

6 years 前

已解决


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

6 years 前

已解决


Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

6 years 前

已解决


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

6 years 前

已解决


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

6 years 前

已解决


Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

6 years 前

已解决


Fangs of a vampire number
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such tha...

6 years 前

已解决


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

6 years 前

已解决


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

6 years 前

已解决


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

6 years 前

已解决


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

6 years 前

已解决


Matrix Max Finder
Output the maximum value in a matrix

6 years 前

加载更多