A résolu


Negative without '-'
Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

environ 9 ans il y a

A résolu


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

environ 9 ans il y a

A résolu


Create a function handle that reverses the input arguments of another function handle
Given a function that takes two input arguments and returns one output, create another function handle that performs the same op...

environ 9 ans il y a

A résolu


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

environ 9 ans il y a

A résolu


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

environ 9 ans il y a

A résolu


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

environ 9 ans il y a

A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


sum of all
sum all of components

environ 9 ans il y a

A résolu


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

environ 9 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

environ 9 ans il y a

A résolu


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

environ 9 ans il y a

A résolu


only multiply 1230
only multiply 1230

environ 9 ans il y a

A résolu


add -1
If given x=3, The answer is 2

environ 9 ans il y a

A résolu


square
square

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

environ 9 ans il y a

A résolu


divide 2
divide

environ 9 ans il y a

A résolu


add 17
add 17

environ 9 ans il y a

A résolu


Double down!
Let's double the 'x'

environ 9 ans il y a

A résolu


add 2016
add 2016

environ 9 ans il y a

A résolu


add 2017
add

environ 9 ans il y a

A résolu


Basic function
x = 5; y = 11

environ 9 ans il y a

A résolu


divide 3
divide

environ 9 ans il y a

A résolu


add 230
add 230

environ 9 ans il y a

A résolu


factorial
factorial

environ 9 ans il y a

A résolu


sum of vector
sum!!

environ 9 ans il y a

A résolu


Remove the Zero
Given an array n, remove all zeros

environ 9 ans il y a

A résolu


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

environ 9 ans il y a

A résolu


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

environ 9 ans il y a

Charger plus