해결됨


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

약 3년 전

해결됨


factorial
factorial

약 3년 전

해결됨


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

약 3년 전

해결됨


Positive Infinity
Round the array a towards positive infinity

약 3년 전

해결됨


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

약 3년 전

해결됨


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

약 3년 전

해결됨


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

약 3년 전

해결됨


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

약 3년 전

해결됨


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.

약 3년 전

해결됨


Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

약 3년 전

해결됨


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

약 3년 전

해결됨


Alkane
Given a number, x, that is equal to the number of carbon atoms in an <http://en.wikipedia.org/wiki/Alkane alkane>, find, y, the ...

약 3년 전

해결됨


Output a vector which is table of 9
Output a vector which is table of 9

약 3년 전

해결됨


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

약 3년 전

해결됨


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

약 3년 전

해결됨


Indexing the last element: Print queue
* Delete the last element of row array printQueue.

약 3년 전

해결됨


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

약 3년 전

해결됨


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

약 3년 전

해결됨


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

약 3년 전

해결됨


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

약 3년 전

해결됨


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

약 3년 전

해결됨


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

약 3년 전

해결됨


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

약 3년 전

해결됨


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

약 3년 전

해결됨


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

약 3년 전

해결됨


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

약 3년 전

해결됨


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

약 3년 전

해결됨


modulus of a number
find the modulus of a given number

약 3년 전

해결됨


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

약 3년 전

해결됨


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

약 3년 전

Load more