문제를 풀었습니다


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

대략 10년 전

문제를 풀었습니다


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

대략 10년 전

문제를 풀었습니다


UICBioE240 problem 1.4
So if A = [ 1 2 3; 4 5 6; 7 8 9] B = [ 3 3]

대략 10년 전

문제를 풀었습니다


y equals x divided by 2
function y = x/2

대략 10년 전

문제를 풀었습니다


prime test
find largest 2 digit prime number

대략 10년 전

문제를 풀었습니다


Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

대략 10년 전

문제를 풀었습니다


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

대략 10년 전

문제를 풀었습니다


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

대략 10년 전

문제를 풀었습니다


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

대략 10년 전

문제를 풀었습니다


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

대략 10년 전

문제를 풀었습니다


Create a vector
Create a vector from 0 to n by intervals of 2.

대략 10년 전

문제를 풀었습니다


factorial of a number x
Factorial of a number x

대략 10년 전

문제를 풀었습니다


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

대략 10년 전

문제를 풀었습니다


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

대략 10년 전

문제를 풀었습니다


Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...

대략 10년 전

문제를 풀었습니다


Subtract two positive numbers
Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

대략 10년 전

문제를 풀었습니다


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

대략 10년 전

문제를 풀었습니다


Determine the length of a string of characters
Determine the length of a string of characters

대략 10년 전

문제를 풀었습니다


Area of a circle
Find the value for area of the circle if diameter is given

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...

대략 10년 전

문제를 풀었습니다


Variable Assignment
Complete the ? part by assigning myExamScore with 100.

대략 10년 전

문제를 풀었습니다


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

대략 10년 전

문제를 풀었습니다


square number
Square a number

대략 10년 전

문제를 풀었습니다


Times 3 problem
When you enter the number, it should return the number multiplied by 3

대략 10년 전

문제를 풀었습니다


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

대략 10년 전

문제를 풀었습니다


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

대략 10년 전

문제를 풀었습니다


Array of Ones
Create a 100 X 100 array of ones.

대략 10년 전

문제를 풀었습니다


String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

대략 10년 전

문제를 풀었습니다


Equidistant numbers containing certain value in an interval
Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

대략 10년 전

더 보기