Resuelto


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

casi 10 años hace

Resuelto


Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

casi 10 años hace

Resuelto


sum
sum as rows

casi 10 años hace

Resuelto


factorial
factorial

casi 10 años hace

Resuelto


turn n times
turn the matrix n times (each time turn +pi/2 radian)

casi 10 años hace

Resuelto


wipe out!
make all the elements in given x zero.

casi 10 años hace

Resuelto


find the determinent
find the determinent of a vector

casi 10 años hace

Resuelto


flip up and down
flip up and down the matrix

casi 10 años hace

Resuelto


sum of vector
sum!!

casi 10 años hace

Resuelto


true or false
if the matrix has a zero, return true. else, return false

casi 10 años hace

Resuelto


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

casi 10 años hace

Resuelto


Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

casi 10 años hace

Resuelto


Create a square matrix with given conditions
Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

casi 10 años hace

Resuelto


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

casi 10 años hace

Resuelto


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

casi 10 años hace

Resuelto


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

casi 10 años hace

Resuelto


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

casi 10 años hace

Resuelto


Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

casi 10 años hace

Resuelto


How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...

casi 10 años hace

Resuelto


Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

casi 10 años hace

Resuelto


make an eye matrix which element is 1:n
for a given input n, make an n by n matrix which contains elements 1:n for example input =5 output = [1 0 0 0 0;0 2 0 0 0; 0...

casi 10 años hace

Resuelto


multiple 2
function y = your_fcn_name(x) y = 2*x; end

casi 10 años hace

Resuelto


determine if
determine if the elements of a matrix is a nan and return true

casi 10 años hace

Resuelto


basics -making a matrix
make a matrix which contains input x as the last element. the intervals should be +1 ex) input = 5 output= [0 1 2 3 4 5] ex)...

casi 10 años hace

Resuelto


sum all the elements
sum all the elements in the matrix ex) x=[1 2 3 4; 5 6 7 8; 9 10 11 12] y=78

casi 10 años hace

Resuelto


find the 'M'
for an input x, return 1 at the location of the letter 'M'

casi 10 años hace

Resuelto


sum as columns
sum as columns.

casi 10 años hace

Resuelto


find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating

casi 10 años hace

Resuelto


cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.

casi 10 años hace

Resuelto


cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.

casi 10 años hace

Cargar más