已解决


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

8 years 前

已解决


Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4

8 years 前

已解决


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

8 years 前

已解决


Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...

8 years 前

已解决


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

8 years 前

已解决


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

8 years 前

已解决


Get Cody's screen size
Return an object that helps this problem's test suite return Cody's screen size.

8 years 前

已解决


Basic commands - Excuse me, what time is it?
Please write a function, which will return current hours and minutes, please notice we are using 24h time. Return a vector li...

8 years 前

已提交


hannoi
https://en.wikipedia.org/wiki/Tower_of_Hanoi

8 years 前 | 1 次下载 |

已提交


balance1(x)
if the parenthesis is right

8 years 前 | 0 次下载 |

已提交


eight queens
eight queens

8 years 前 | 2 次下载 |

已提交


multip_prod(varargin)
product of several numbers

8 years 前 | 1 次下载 |

已提交


multip_add(varargin)
calculate sum of several number

8 years 前 | 0 次下载 |

已解决


Writing a function: MaxValue()
Write a local function named MaxValue that returns the maximum of two inputs numA and numB.

8 years 前

已解决


Writing a recursive math function
Complete the recursive function RaiseToPower(). Ex: If userBase is 2 and userExponent is 4, then raisedValue is assigned wit...

8 years 前

已解决


Prime checker
Complete the recursive function to determine if a number is prime. Skeletal code is provided in the PrimeChecker function.

8 years 前

已解决


Number of pennies
Complete the function ConvertToPennies() so that the function returns the total number of pennies given a number of dollars and ...

8 years 前

已解决


Currency conversion
A currency exchange booth offers an exchange rate of 119.771 Japanese yen for 1 US dollar. The currency exchange booth rounds do...

8 years 前

已解决


inner product of two vectors
inner product of two vectors

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 前

已解决


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 前

已解决


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

8 years 前

已解决


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

8 years 前

已解决


Basic commands - How old is your matlab version?
Please make a function, which gives amount of days since release it's version.

8 years 前

已解决


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

8 years 前

已解决


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

8 years 前

已解决


how to create zero square matrix with given order?
y-Zero square matrix with given input order x.

8 years 前

已解决


How to power of a given number&exponent?
How to power of a given number&exponent?

8 years 前

已解决


find number of buses for given to and from lines
find number of buses for given to and from lines

8 years 前

已解决


Make 3d matrix from other matrix
A=[1 1;2 2]; B=[2 2;3 3]; C=[0 0;1 3]; Using given three matrix, make 3 dimensional matrix [D] by stacking.

8 years 前

加载更多