문제를 풀었습니다


Back to basics - mean of corner elements of a matrix
Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

거의 8년 전

문제를 풀었습니다


Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

거의 8년 전

문제를 풀었습니다


Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!

거의 8년 전

문제를 풀었습니다


Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Example: in = magic(5) in = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

거의 8년 전

문제를 풀었습니다


Sum the entries of each column of a matrix which satisfy a logical condition.
Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

거의 8년 전

문제를 풀었습니다


Find number of days
The input is two date in string format (dd-mm-yyyy) find out the number of days between these two dates. Example: input: ...

거의 8년 전

문제를 풀었습니다


Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd Each vector contain a set of integers, where VecEnd(j)>=VecStar...

거의 8년 전

문제를 풀었습니다


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

거의 8년 전

문제를 풀었습니다


Dosage by weight
A machine administer's medication dosage based on weight. Write an if-elseif-else statement that assigns the appropriate dosageA...

거의 8년 전

문제를 풀었습니다


Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number> _Please do not cheat by simply chec...

거의 8년 전

문제를 풀었습니다


Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

거의 8년 전

문제


Cookie Cutters
Given a larger and smaller matrix, perform element-by-element multiplication on the smaller matrix and a sub-matrix of the large...

거의 8년 전 | 2 | 솔버 수: 59

문제


Union Jack Matrix
Create a matrix of odd dimensions that has ones on both diagonals and dividing the matrix into 4 quadrants, resembling a square ...

거의 8년 전 | 4 | 솔버 수: 77

문제를 풀었습니다


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

거의 8년 전

문제를 풀었습니다


Writing a function: MaxValue()
Write a local function named MaxValue that returns the maximum of two inputs numA and numB.

거의 8년 전

문제를 풀었습니다


Check bounds
Assign inRange with 1 if userWeight is greater than 100 and less than or equal to 200.

거의 8년 전

문제를 풀었습니다


Equality check: Number of bricks
Write an if statement that assigns deliveryComplete with 1 if bricksDelivered is equal to bricksExpected.

거의 8년 전

문제를 풀었습니다


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

거의 8년 전

문제를 풀었습니다


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

거의 8년 전

문제를 풀었습니다


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

거의 8년 전

문제를 풀었습니다


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

거의 8년 전

문제를 풀었습니다


7 segment LED display
Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (http://en.wikipedia.org...

거의 8년 전

문제를 풀었습니다


Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...

거의 8년 전

문제를 풀었습니다


Potential Energy
Calculate the potential energy of a rock.

거의 8년 전

문제를 풀었습니다


reverse string
input='rama' output='amar'

거의 8년 전

문제를 풀었습니다


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

거의 8년 전

문제를 풀었습니다


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

거의 8년 전

문제를 풀었습니다


Square a Number
Given an input x, return y, which is equal to the square of x.

거의 8년 전

문제를 풀었습니다


square number
Square a number

거의 8년 전

문제를 풀었습니다


Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...

거의 8년 전

더 보기