문제를 풀었습니다


Ohmic Heating

9개월 전

문제를 풀었습니다


Find the number of primes less than input
Given an integer n, determine the number of primes less than or equal to n.

9개월 전

문제를 풀었습니다


Get the n-th rand number with given seed
Given seed s, return the n-th rand number using rand(). Round the answer with 4 digits. n is a postive integer.

9개월 전

문제를 풀었습니다


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

9개월 전

문제를 풀었습니다


Convert elements in numeric array into different class
Write a function that converts elements in a numeric array into a different class. Example: a = [1:5]; % class: double b...

9개월 전

문제를 풀었습니다


Find smallest integer type to accommodate your number
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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 ...

9개월 전

문제를 풀었습니다


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...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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 ...

9개월 전

문제를 풀었습니다


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"]; ...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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.

9개월 전

문제를 풀었습니다


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...

9개월 전

문제를 풀었습니다


Sales Tax

9개월 전

문제를 풀었습니다


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 ...

9개월 전

문제를 풀었습니다


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...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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 ...

9개월 전

문제를 풀었습니다


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...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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] ) == [...

9개월 전

문제를 풀었습니다


Highest building

9개월 전

문제를 풀었습니다


Normalizing a vector

9개월 전

문제를 풀었습니다


Find the nearest value to the given one

9개월 전

문제를 풀었습니다


Do you have the minimum age?

9개월 전

더 보기