解決済み


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

2年以上 前

解決済み


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

2年以上 前

解決済み


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

2年以上 前

解決済み


How many figures currently exist?
Return the number of figures that exist at any given time.

2年以上 前

解決済み


Find index of non empty cell array
This question aims to understand the characteristics of MATLAB programs. Educational problem. Please find non empty index of ...

2年以上 前

解決済み


Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

2年以上 前

解決済み


odd number odd sum
How many three digit numbers are there whose sum of the digits is odd?

2年以上 前

解決済み


Find the number of rectangles
There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.

2年以上 前

解決済み


Find files with extension ext in the current directory
List all files with extension 'ext' in the current directory. Return a char matrix with the name of files in rows. Return 0 if...

2年以上 前

解決済み


Sales Tax

2年以上 前

解決済み


Compute the drag on a moving vehicle
We assume no rolling resistance, and the simple rule for Drag : , where is the density of the fluid (assumed at 1.2 ), is the ...

2年以上 前

解決済み


Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...

2年以上 前

解決済み


Orthogonal lines
Check whether two given lines are orthogonal or not. Two lines are orthogonal if they create a right angle at their intersect...

2年以上 前

解決済み


PIN code II
A cell phones requires a PIN code to open which only includes numbers; how long (in terms of minutes) does it take to enter all ...

2年以上 前

解決済み


Convert a grayscale image into RGB colour format, preserving data type
In the Image Processing Toolbox, MATLAB provides rgb2gray to convert a 3 channel color image into a 1 channel intensity...

2年以上 前

解決済み


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

2年以上 前

解決済み


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

2年以上 前

解決済み


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

2年以上 前

解決済み


FizzBuzz
<http://c2.com/cgi/wiki?FizzBuzzTest FizzBuzz Test> The "Fizz-Buzz test" is an interview question designed to help filter out...

2年以上 前

解決済み


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

2年以上 前

解決済み


Highest building

2年以上 前

解決済み


Normalizing a vector

2年以上 前

解決済み


Find the nearest value to the given one

2年以上 前

解決済み


Do you have the minimum age?

2年以上 前

解決済み


Digits Multiplication
Your function should calculate the product of the digits of a positive given integer excluding any zeroes. Example: the result ...

2年以上 前

解決済み


End Digits

2年以上 前

解決済み


Min-Max digit

2年以上 前

解決済み


Map all the indices of an Array Indices into a Vector giving Index vs Row and Column
Create an array of the row and column values for the indices of an array. This is typically performed using [r c]=ind2sub(siz...

2年以上 前

解決済み


Fun with matrix
Design a sample matrix as given in the test cases

2年以上 前

さらに読み込む