Community Profile

Contact

Top 1% contributor

Hey For a color image split into 3 components and perform histeq on each of them and then recombine them.

0

Answered 2 years ago

Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

Solve this!

2 years ago

Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

you have vector x,as input,sort it ascending by mathlab function or your own code,then in the new vector,sorted_x,for each eleme...

Sort a row vector without using MATLAB built_in function sort, descending or ascending as mentioned with t='de' or t='as'.

You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

1:6 -> 60

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

Create a vector of length N for an integer of N digits. x=123045; x_vec=[1 2 3 0 4 5]; I happened upon a trick to do ...

Generate pi using logarithm

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

Example : in->v = (1:5)'; 1 2 3 4 5 out-> [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 ...

This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...

|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

Example: in = magic(5) in = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

Load more