Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Enviada


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

casi 10 años hace | 1 descarga |

0.0 / 5

Enviada


balance1(x)
if the parenthesis is right

casi 10 años hace | 0 descargas |

0.0 / 5

Enviada


eight queens
eight queens

casi 10 años hace | 2 descargas |

0.0 / 5

Enviada


multip_prod(varargin)
product of several numbers

casi 10 años hace | 1 descarga |

0.0 / 5

Enviada


multip_add(varargin)
calculate sum of several number

casi 10 años hace | 0 descargas |

0.0 / 5

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


inner product of two vectors
inner product of two vectors

casi 10 años hace

Resuelto


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0.

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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;

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Cargar más