문제를 풀었습니다


High Five!
Write a function that takes a number x and returns y = 'High Five' if x is not equal to five. Return y = 'Denied' if the number ...

18일 전

문제를 풀었습니다


A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...

18일 전

문제를 풀었습니다


NOT
If a not equal to zero, b = true, else, b = false.

18일 전

문제를 풀었습니다


OR
If a greater than zero or c less than 10, b = true, else, b = false.

18일 전

문제를 풀었습니다


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

18일 전

문제를 풀었습니다


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

18일 전

문제를 풀었습니다


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

18일 전

문제를 풀었습니다


If-Else
If a more than zero, b = true, else, b = false.

18일 전

문제를 풀었습니다


If
If a more than zero, then b = true.

18일 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

18일 전

문제를 풀었습니다


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

18일 전

문제를 풀었습니다


Find the max element of the array
Find the max element of the array

18일 전

문제를 풀었습니다


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

18일 전

문제를 풀었습니다


the average value of the elements
Calculate the average value of the elements in the array

18일 전

문제를 풀었습니다


calculate the length of matrix
input 1 array, calculate the length

18일 전

문제를 풀었습니다


Double all elements in the array
Duplicate all elements in the array

18일 전

문제를 풀었습니다


Converts numbers into characters
Converts numbers into characters

18일 전

문제를 풀었습니다


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

18일 전

문제를 풀었습니다


Make a Plot with Functions
Make a plot and test

18일 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

19일 전

문제를 풀었습니다


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

19일 전

더 보기