Solved


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

bijna 11 jaar ago

Solved


Find same numbers touching each other...
So the goal here is to find any number that is equal to its immediate neighbors and mark it true. Here is some examples: x...

bijna 11 jaar ago

Solved


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

bijna 11 jaar ago

Solved


convert matrix to single column
given any matrix, convert it to single column

bijna 11 jaar ago

Solved


Get me! v2
Exploiting cody v2

ongeveer 11 jaar ago

Solved


Make a Plot with Functions
Make a plot and test

ongeveer 11 jaar ago

Solved


Get me!
Inspired by Now! problems. Do your best!

ongeveer 11 jaar ago

Solved


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

ongeveer 11 jaar ago

Solved


Add two numbers
Add two numbers (For beginners)

ongeveer 11 jaar ago

Solved


Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

ongeveer 11 jaar ago

Solved


Can you beat the lottery?
Well this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try ...

ongeveer 11 jaar ago

Solved


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

ongeveer 11 jaar ago

Solved


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

ongeveer 11 jaar ago

Solved


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

ongeveer 11 jaar ago

Solved


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

ongeveer 11 jaar ago

Solved


reading multiple lvm files
i take data in labview. It saves the data in lvm format. I use the dlmread command to read it,but i dont know how to read multip...

ongeveer 11 jaar ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

ongeveer 11 jaar ago

Solved


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

ongeveer 11 jaar ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

ongeveer 11 jaar ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

ongeveer 11 jaar ago

Solved


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

ongeveer 11 jaar ago

Solved


Now 20% off!
Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of Septem...

ongeveer 11 jaar ago

Solved


Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

ongeveer 11 jaar ago

Solved


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

ongeveer 11 jaar ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

ongeveer 11 jaar ago

Solved


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

ongeveer 11 jaar ago

Solved


Return elapsed time
Write a function that returns the amount of time it takes to run the function, as measured by tic and toc. Your answer must be c...

ongeveer 11 jaar ago

Solved


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

ongeveer 11 jaar ago

Solved


Generate a melodic contour string matrix
<http://en.wikipedia.org/wiki/Parsons_code Parsons code> is a surprisingly effective way to identify music by its melodic motion...

ongeveer 11 jaar ago

Solved


Back to basics 25 - Valid variable names
Covering some basic topics I haven't seen elsewhere on Cody. Given a string, return true if it is a valid MATLAB variable nam...

ongeveer 11 jaar ago

Load more