Community Profile

Contact

Top 1% contributor

4 downloads

2 years ago

clc a = input('Enter Number of Cities need to travel: '); b = 2; t = xlsread('Data.xls'); if ~isempty(t) xlswrite('Data....

accepted

1

Answered 3 years ago

do you mean this： close all clear,clc x=[0 -1.73205161513813 -1.73210161662818 0 -1.73205161513813 0 0 -1.7320516151381...

0

Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

Solve this!

12 months ago

Given a function handle, return a handle to a function that would accept an arbitrary number of inputs, applies the function to ...

Create a row array from 9 to 1, using the double colon operator.

Return a function handle that when applied to an input, it produces two outputs: the first is the same as the input, and the sec...

Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

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

入力したベクトルの大きさを１にしてください。

1 year ago

Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

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

Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

given x ratio of pressure, find corresponding y dB

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 column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

The Challenge is to perform very fast the 'ismember' function for a long and wide array. The data is small integer representi...

Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

Define a function that behaves in the same way as mean(x) and mean(x,d) except that it ignores NaNs (unless all of the values be...

Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...

This Challenge is to solve the <http://contest.usc.edu/index.php/Spring13/Home USC Spring 2013 ACM Contest> Problem F, Snow Cone...

Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

Please return the smallest positive number. This is a little silly problem, but the solution has some funny properties...

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

x and y are input vectors, d is a number and contains their dot product

This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

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

Load more