A résolu


Laws of motion 1

plus de 2 ans il y a

A résolu


radius of a spherical planet
You just measured its surface area, that is the input.

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

plus de 2 ans il y a

A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

plus de 2 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus de 2 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

plus de 2 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 2 ans il y a

A résolu


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

plus de 2 ans il y a

A résolu


Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array: Given this array Return...

plus de 2 ans il y a

A résolu


02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

plus de 2 ans il y a

A résolu


Array of Ones
Create a 100 X 100 array of ones.

plus de 2 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus de 2 ans il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

plus de 2 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

plus de 2 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

plus de 2 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

plus de 2 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

plus de 2 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus de 2 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

plus de 2 ans il y a

A résolu


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count...

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

plus de 2 ans il y a

A résolu


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

plus de 2 ans il y a

A résolu


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

plus de 2 ans il y a

A résolu


Inner product of two vectors
Find the inner product of two vectors.

plus de 2 ans il y a

A résolu


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

plus de 2 ans il y a

A résolu


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

plus de 2 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 2 ans il y a

A résolu


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

plus de 2 ans il y a

Charger plus