已解决


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

8 years 前

已解决


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

8 years 前

已解决


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

8 years 前

已解决


Find Missing Number
A little problem (inspired by CodeChef) for the coffee break. A friend give you an array of size n-1 integers and these int...

8 years 前

已解决


Odd elimination
Inspired by Project Euler problem #539 You'll be given a vector from 1 to n; Going from left to right, remove the first n...

8 years 前

已解决


count any radix?
given radix r(2-9), digts d(1-4), give all possible strings in sorted order. for example, if r=2, d=2, then output {'00' '01' '1...

8 years 前

已解决


DC-DC boost converter
Find the output voltage of a DC-DC boost converter when its input voltage is 12V and the duty cycle ratio is 0.6.

8 years 前

已解决


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

8 years 前

已解决


Calculate the logarithm of number
Calculate the logarithm of number x

8 years 前

已解决


Create a code for XNOR
Given two inputs, output XNOR of those two

8 years 前

已解决


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

8 years 前

已解决


Number of primes
Count the number of primes less than 'n'.

8 years 前

已解决


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

8 years 前

已解决


multiply 2 by 2
multiply 2 by 2

8 years 前

已解决


sum as columns
sum as columns.

8 years 前

已解决


Einsteinium-253 decay
Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

8 years 前

已解决


Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

8 years 前

已解决


Double Deal
*Description* Given an input vector _v_, return the first element as the first output, the second element as the second outpu...

8 years 前

已解决


y=x
y=x

8 years 前

已解决


Create vector as shown in test cases
Create vector as shown in test cases

8 years 前

问题


Create vector as shown in test cases
Create vector as shown in test cases

8 years 前 | 3 | 243 个解题者

已解决


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

8 years 前

已解决


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

8 years 前

已解决


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

8 years 前

已解决


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

8 years 前

已解决


Pushing the envelope
Find the largest sized code to return... *nothing*.

8 years 前

已解决


Calculate this one!
Using matlab calculate y y=(e^2)+100/20+sin(pi)

8 years 前

已解决


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

8 years 前

已解决


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0.

8 years 前

已解决


Interpolate data!
There are two data that observed at two different location. x indicate position, d indicate value of data. x=[1 10] d=[2 ...

8 years 前

加载更多