문제


Tridiagonal
Return an n-by-n matrix that has a, b, c as the subdiagonal, main diagonal, and superdiagonal entries in the matrix. Example ...

12년 초과 전 | 2 | 솔버 수: 171

문제를 풀었습니다


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

12년 초과 전

문제를 풀었습니다


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

12년 초과 전

문제를 풀었습니다


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

12년 초과 전

문제를 풀었습니다


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

12년 초과 전

문제를 풀었습니다


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

12년 초과 전

문제를 풀었습니다


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

12년 초과 전

문제를 풀었습니다


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

12년 초과 전

문제를 풀었습니다


Concatenate matrix into 4 quadrants for given number of iteration
If given a matrix and number, output should be its concatenation like wavelet for given number of iterations. Example a ...

12년 초과 전

문제를 풀었습니다


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

12년 초과 전

문제를 풀었습니다


Perl 3: shift
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

12년 초과 전

문제를 풀었습니다


Perl 2: pop
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

12년 초과 전

문제를 풀었습니다


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

12년 초과 전

문제를 풀었습니다


Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

12년 초과 전

문제를 풀었습니다


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

12년 초과 전

문제를 풀었습니다


Phonebook-like problem
strcmpi('Yes', 'No')

12년 초과 전

문제를 풀었습니다


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

12년 초과 전

문제를 풀었습니다


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

12년 초과 전

문제를 풀었습니다


Add two numbers
Add two numbers (For beginners)

12년 초과 전

문제를 풀었습니다


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

12년 초과 전

문제를 풀었습니다


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

12년 초과 전

문제를 풀었습니다


frame of the matrix
Given the matrix M, return M without the external frame.

12년 초과 전

문제를 풀었습니다


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

12년 초과 전

문제를 풀었습니다


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

12년 초과 전

문제를 풀었습니다


Volume of a sphere given its surface area
You just measured its surface area, that is the input.

12년 초과 전

문제를 풀었습니다


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

12년 초과 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

12년 초과 전

문제를 풀었습니다


create a circulant matrix
create a circulant matrix

12년 초과 전

문제를 풀었습니다


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

12년 초과 전

문제를 풀었습니다


Volume of a Parallelepiped
Calculate the volume of a Parallelepiped given the vectors for three edges that meet at one vertex. A cube is a special case ...

12년 초과 전

더 보기