문제를 풀었습니다


merge two matrices together in one matrix
a= [1 2 3 4]; b=[5 6 7 8]; take the first column from matrix (a)and (b)then insert them in matrix (c) respectively, and so on;...

대략 9년 전

문제를 풀었습니다


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

대략 9년 전

문제를 풀었습니다


generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

9년 초과 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

9년 초과 전

문제를 풀었습니다


Counting the Grand Primes
A grand prime pair is a pair of primes, p1 and p2=p1+1000, such that both numbers are prime. Like a twin prime pair, where the d...

9년 초과 전

문제를 풀었습니다


Narcissistic problem
How many likes has this problem?

9년 초과 전

문제를 풀었습니다


Find the sum of n squares
What is the sum of the squares of the first n integers?

9년 초과 전

문제를 풀었습니다


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

9년 초과 전

문제를 풀었습니다


Transpose of matrix
Transpose of matrix as per test cases

9년 초과 전

문제를 풀었습니다


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

9년 초과 전

문제를 풀었습니다


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

9년 초과 전

문제를 풀었습니다


Square root of a number
Write a code that will output the square root of x.

9년 초과 전

문제를 풀었습니다


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

9년 초과 전

문제를 풀었습니다


Vector with a repeated entry
Create a row vector of length n, filled with 5's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

9년 초과 전

문제를 풀었습니다


Log of a number
Write a script that will give the log of x as output.

9년 초과 전

문제를 풀었습니다


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

9년 초과 전

문제를 풀었습니다


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

9년 초과 전

문제를 풀었습니다


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

9년 초과 전

문제를 풀었습니다


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

9년 초과 전

문제를 풀었습니다


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

9년 초과 전

문제를 풀었습니다


Look Up Mapping
Let the input is A = {[] [] [] [1] []}; B = {'A','B','C','D','E'}; Mapped Output = 'D';

9년 초과 전

문제를 풀었습니다


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

9년 초과 전

문제를 풀었습니다


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

9년 초과 전

문제를 풀었습니다


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

9년 초과 전

문제를 풀었습니다


Zero Cross
Can you write a function counts the number of times(n) a signal(x) crosses zero or changes sign. Example x=[1 2 -3 -4 5 ...

9년 초과 전

문제


Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

9년 초과 전 | 3 | 솔버 수: 133

문제를 풀었습니다


UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

9년 초과 전

문제를 풀었습니다


UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

더 보기