解決済み


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

4年弱 前

解決済み


matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

4年弱 前

解決済み


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

4年弱 前

解決済み


Area of the yellow shaded region

4年弱 前

解決済み


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

4年弱 前

解決済み


Sum of series VIII

4年弱 前

解決済み


Draw a '4' in a zero matrix!

4年弱 前

解決済み


Draw a '2' in a zero matrix!

4年弱 前

解決済み


Draw a '9' in a zero matrix!

4年弱 前

解決済み


Draw a '6' in a zero matrix!

4年弱 前

解決済み


Draw a '5' in a zero matrix!

4年弱 前

解決済み


Draw a '3' in a zero matrix!

4年弱 前

解決済み


Draw a '8' in a zero matrix!

4年弱 前

解決済み


Draw a '1' in a zero matrix!

4年弱 前

解決済み


Draw a '7' in a zero matrix!

4年弱 前

解決済み


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

4年弱 前

解決済み


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

4年弱 前

解決済み


Total resistance of resistors in series
What is the total resistance of a number of resistors in series? A vector R contains the resistances (in Ohm) of n resistors, w...

4年弱 前

解決済み


Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel? A vector R contains the resistances (in Ohm) of n resistors,...

4年弱 前

解決済み


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

4年弱 前

解決済み


easy problem
Find the last element of the array

4年弱 前

解決済み


Sum sum!!!
Sum the numbers from 1 to n

4年弱 前

解決済み


Permutations of input vector
Find and output all permutations of given vector

4年弱 前

解決済み


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

4年弱 前

解決済み


Numbers spiral diagonals (Part 1)
Inspired by Project Euler n°28 et 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right...

4年弱 前

解決済み


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

4年弱 前

解決済み


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

4年弱 前

解決済み


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

4年弱 前

解決済み


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

4年弱 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

4年弱 前

さらに読み込む