Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


sum
sum as rows

quasi 10 anni fa

Risolto


factorial
factorial

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


find the determinent
find the determinent of a vector

quasi 10 anni fa

Risolto


flip up and down
flip up and down the matrix

quasi 10 anni fa

Risolto


sum of vector
sum!!

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


sum as columns
sum as columns.

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Carica altro