Community Profile

Contact

Top 5% contributor

I am using R2009a on Windows7 64 bit. I have an open Matlab instance. When I double click on .m file opens a new Matlab instanc...

3323 views

Posted 4 years ago

Suppose your GUI changes (Happens in production code :) ), how will you write the changes to your version control? Most of versi...

1495 views

Responded 6 years ago

Is there a way to convert GUIDE generated figure+m to only .m file?

Posted 6 years ago

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

Solve this!

3 years ago

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

You, I, and a few other characters are going to play a game of *Steal, Share or Catch*. We are going to play it 10,000 times vs...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

Create n x 2n "mirror" matrix of this type: e.g. for n = 2 m = [1 2 2 1;1 2 2 1] e.g. for n = 3 m = [1 2 3 3 2 1...

Constructions that use feval or eval are used to cheat with cody. This test-suite tries to avoid that trick. The goal of this...

Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

For this challenge you get two inputs: a matrix A and an integer value n. Your function should return a Matrix B of the same si...

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Regardless of input, output the string 'yes'.

Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...

Given a function that takes two input arguments and returns one output, create another function handle that performs the same op...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

Load more