A résolu


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

plus de 9 ans il y a

A résolu


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

plus de 9 ans il y a

A résolu


UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

plus de 9 ans il y a

A résolu


Prime Time
All you need to do here is submit your solution a prime number of seconds after the top of the hour. Any hour at all... Easy, ...

plus de 9 ans il y a

A résolu


Sum of integers numbers
Sum of the numbers from 1 to 100

plus de 9 ans il y a

A résolu


Power The Product
EXAMPLE: INPUT x=10 & y=10 OUTPUT z=1000000 or, INPUT x=2 & y=3 OUTPUT z= 216 you just need to calculate the product first...

plus de 9 ans il y a

A résolu


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

plus de 9 ans il y a

A résolu


Conversion from hours to mili sec
Convert given input in hours to mili seconds

plus de 9 ans il y a

A résolu


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

plus de 9 ans il y a

A résolu


UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions A = 2+5i B = 2+5*i C = both are okay Write capital letter a...

plus de 9 ans il y a

A résolu


Your favourite city!
Type your favourite city.

plus de 9 ans il y a

A résolu


Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

plus de 9 ans il y a

A résolu


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

plus de 9 ans il y a

A résolu


Computing Wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

plus de 9 ans il y a

A résolu


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

plus de 9 ans il y a

A résolu


Power of n ?
Determine if _x_ (positive integer) is a power of _n_, return true or false accordingly.

plus de 9 ans il y a

A résolu


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

plus de 9 ans il y a

A résolu


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

plus de 9 ans il y a

A résolu


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

plus de 9 ans il y a

A résolu


Sum all integers from 1 to 2^x
Given a number x, your function must return the summation of all integers from 1 to 2^x.

plus de 9 ans il y a

A résolu


Usage of varargout
This Challenge is to demonstrate usage of varargout. Output a cell array using varargout of magic squares of size 1 thru n. ...

plus de 9 ans il y a

A résolu


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

plus de 9 ans il y a

A résolu


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

plus de 9 ans il y a

A résolu


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

plus de 9 ans il y a

A résolu


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

plus de 9 ans il y a

A résolu


How many days does the cat take to climb out of the hole?
A cat accidentally falls down a hole with sloping but rough sides. It can climb out of the hole of height h metres, but for ever...

plus de 9 ans il y a

A résolu


UICBioE240 2.8
Convert x number of hours into seconds.

plus de 9 ans il y a

A résolu


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

plus de 9 ans il y a

A résolu


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

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

plus de 9 ans il y a

Charger plus